gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
21 lines (20 loc) • 683 B
TypeScript
import ejs from 'ejs';
import type { MemFsEditorFile } from 'mem-fs-editor';
export default class TemplateFile {
file?: MemFsEditorFile;
rootTemplate: boolean;
basePath?: string;
parentPath?: string;
filePath?: string;
private readonly _filename;
private readonly _extension;
private _compiled;
private readonly _fragments;
private readonly _fragmentName;
private readonly _debug;
constructor(filename: string, extension: string);
compile(filePath: string, contents: string, options: ejs.Options): void;
addFragment(templateFile: TemplateFile): void;
renderFragments(data: any): string[];
render(data?: any): string;
}