UNPKG

@stacksjs/stx

Version:

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

11 lines (10 loc) 497 B
import type { StxOptions } from './types'; declare interface CacheEntry { output: string mtime: number dependencies: Set<string> } export declare const templateCache: Map<string, CacheEntry>; export declare function checkCache(filePath: string, options: StxOptions): Promise<string | null>; export declare function cacheTemplate(filePath: string, output: string, dependencies: Set<string>, options: StxOptions): Promise<void>; export declare function hashFilePath(filePath: string): string;