generator-begcode
Version:
Spring Boot + Angular/React/Vue in one handy generator
20 lines (19 loc) • 538 B
TypeScript
export default class TemplateFile {
file: any;
rootTemplate: boolean;
basePath?: string;
parentPath?: string;
filePath?: string;
private depth;
private _filename;
private _extension;
private _compiled;
private _fragments;
private _fragmentName;
private _debug;
constructor(filename: any, extension: any);
compile(filePath: any, contents: any, options: any): void;
addFragment(templateFile: any): void;
renderFragments(data: any): string[];
render(data?: any): string;
}