UNPKG

edgerender-yatl

Version:

Yet Another Template Language

8 lines (7 loc) 596 B
import { FileLoader, load_template, PrepareParserWasm } from './parse'; import { render_template } from './render'; import { Context, Functions } from './expressions/evaluate'; import { str2stream } from './utils'; declare type LaxFileLoader = (path: string) => Promise<ReadableStream | string>; declare function render_string(template_string: string, context: Context, functions: Functions, prepare_parser_wasm: PrepareParserWasm, file_loader?: LaxFileLoader): Promise<string>; export { load_template, render_template, render_string, str2stream, FileLoader, LaxFileLoader, Context, Functions };