import { Environment } from "https://deno.land/x/vento@v1.12.11/src/environment.ts";
Constructors
new
Environment(options: Options)Properties
cache: Map<string, Template>
filters: Record<string, Filter>
options: Options
tags: Tag[]
tokenPreprocessors: TokenPreprocessor[]
Methods
compile(): TemplateSync
source: string,
path?: string,
defaults?: Record<string, unknown>,
sync?: true,
compileFilters(): string
compileTokens(): string[]
createError(): Error
path: string,
source: string,
position: number,
cause: Error,
run(): Promise<TemplateResult>
file: string,
data: Record<string, unknown>,
from?: string,
runString(): Promise<TemplateResult>
source: string,
data?: Record<string, unknown>,
file?: string,
runStringSync(source: string, data?: Record<string, unknown>): TemplateResult