@codewithdan/ai-repo-adventure-generator
Version:
Generate beautiful HTML adventure websites from your codebase
30 lines • 823 B
TypeScript
/**
* Simple template engine for HTML generation
* Handles template loading and placeholder replacement
*/
interface TemplateVariables {
[key: string]: string;
}
export declare class TemplateEngine {
private templateCache;
private templatesDir;
constructor();
/**
* Load a template file with caching
*/
private loadTemplate;
/**
* Replace placeholders in template with variables
*/
private replacePlaceholders;
/**
* Render a complete page using base template + content template
*/
renderPage(contentTemplate: string, variables: TemplateVariables): string;
/**
* Render just a template fragment
*/
renderTemplate(templateName: string, variables: TemplateVariables): string;
}
export {};
//# sourceMappingURL=template-engine.d.ts.map