woaru
Version:
Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language
46 lines • 1.2 kB
TypeScript
/**
* Template Engine - Processes templates and generates project files
*/
import { ProjectConfig, GeneratedProject } from './types';
export declare class TemplateEngine {
private handlebars;
constructor();
/**
* Process template and generate project
*/
processTemplate(config: ProjectConfig): Promise<GeneratedProject>;
/**
* Check if a conditional rule should include the item
*/
private shouldInclude;
/**
* Evaluate simple conditions
*/
private evaluateCondition;
/**
* Security validation: Check for unsafe expressions in template conditions
* Prevents code injection by blocking dangerous patterns
*/
private containsUnsafeExpressions;
/**
* Get static file content
*/
private getStaticFileContent;
/**
* Process template file with Handlebars
*/
private processTemplateFile;
/**
* Get default content for common files
*/
private getDefaultFileContent;
/**
* Register Handlebars helpers
*/
private registerHelpers;
/**
* Generate project summary
*/
private generateSummary;
}
//# sourceMappingURL=TemplateEngine.d.ts.map