@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
10 lines • 529 B
TypeScript
/**
* Process JavaScript directives in templates
* Executes JavaScript code on the server and removes the code blocks from output
*/
export declare function processJsDirectives(template: string, context: Record<string, any>, filePath?: string): Promise<string>;
/**
* Process TypeScript directives in templates
* Executes TypeScript code on the server and removes the code blocks from output
*/
export declare function processTsDirectives(template: string, context: Record<string, any>, filePath?: string): Promise<string>;