UNPKG

@stacksjs/stx

Version:

A Bun plugin that allows for using Laravel Blade-like syntax.

6 lines (5 loc) 640 B
import type { CustomDirective, StxOptions } from './types'; export declare function processCustomDirectives(template: string, context: Record<string, any>, filePath: string, options: StxOptions): Promise<string>; declare function processDirectiveWithEndTag(template: string, directive: CustomDirective, context: Record<string, any>, filePath: string, options: StxOptions): Promise<string>; declare function processDirectiveWithoutEndTag(template: string, directive: CustomDirective, context: Record<string, any>, filePath: string, options: StxOptions): Promise<string>; declare function parseDirectiveParams(paramString: string): string[];