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
Go to Latest
class Environment
import { Environment } from "https://deno.land/x/lume@v1.18.4/deps/vento.ts";

Constructors

new
Environment(options: Options)

Properties

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

Methods

compile(
source: string,
path?: string,
defaults?: Record<string, unknown>,
): Template
compileFilters(tokens: Token[], output: string)
compileTokens(
tokens: Token[],
outputVar?,
stopAt?: string[],
): string[]
load(file: string, from?: string): Promise<Template>
run(
file: string,
data: Record<string, unknown>,
from?: string,
): Promise<string>
runString(
source: string,
data?: Record<string, unknown>,
file?: string,
): Promise<string>
use(plugin: Plugin)