UNPKG

gen-jhipster

Version:

VHipster - Spring Boot + Angular/React/Vue in one handy generator

24 lines (23 loc) 739 B
import type TemplateFile from './template-file.ts'; export default class TemplateData { private readonly _templateFile; private readonly _defaultData; private _sections; constructor(templateFile: TemplateFile, defaultData?: {}); registerSections(sections: Record<string, number>): void; renderSection(section: string, fragmentData: any, suffix?: string): unknown; /** * Render fragments using default join and suffix. */ render(fragmentData?: { join?: string; section?: string; }, suffix?: string): string; /** * Proxy to renderFragments for templates. */ renderFragments(fragmentData?: { fragment?: any; section?: string; }): string[]; }