Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/vento.ts>Environment

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class Environment
import { Environment } from "https://deno.land/x/lume@v2.4.1/deps/vento.ts";

Constructors

new
Environment(options: Options)

Properties

cache: Map<string, Template>
filters: Record<string, Filter>
options: Options
tags: Tag[]
tokenPreprocessors: TokenPreprocessor[]
utils: Record<string, unknown>

Methods

compile(
source: string,
path?: string,
defaults?: Record<string, unknown>,
sync?: false,
): Template
compile(
source: string,
path?: string,
defaults?: Record<string, unknown>,
sync?: true,
): TemplateSync
compileFilters(
tokens: Token[],
output: string,
autoescape?,
): string
compileTokens(
tokens: Token[],
outputVar?,
stopAt?: string[],
): string[]
createError(
path: string,
source: string,
position: number,
cause: Error,
): Error
load(file: string, from?: string): Promise<Template>
run(
file: string,
data: Record<string, unknown>,
from?: string,
): Promise<TemplateResult>
runString(
source: string,
data?: Record<string, unknown>,
file?: string,
): Promise<TemplateResult>
runStringSync(source: string, data?: Record<string, unknown>): TemplateResult
tokenize(source: string, path?: string): Token[]
use(plugin: Plugin)