@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
14 lines • 707 B
TypeScript
import type { StxOptions } from './types';
/**
* Process `<component :is="expr">` tags in the template.
* Evaluates the :is expression against the context to determine which
* component to render, then resolves and renders that component inline.
*
* @param template - The template string
* @param context - Current template context
* @param filePath - Current file path
* @param options - stx options
* @param dependencies - Dependency tracking set
* @returns Processed template with dynamic components resolved
*/
export declare function processDynamicComponents(template: string, context: Record<string, any>, filePath: string, options: StxOptions, dependencies?: Set<string>): Promise<string>;