Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/nunjucks/src/environment.js>Environment

A powerful templating engine with inheritance, asynchronous control, and more (Jinja 2 inspired)
Go to Latest
class Environment
extends EmitterObj
import { Environment } from "https://deno.land/x/nunjucks@3.2.3-2/src/environment.js";

Methods

addExtension(name, extension)
addFilter(
name,
func,
async,
)
addGlobal(name, value)
addTest(name, func)
express(app)
getFilter(name)
getGlobal(name)
getTemplate(
name,
eagerCompile,
parentName,
ignoreMissing,
cb,
)
getTest(name)
init(loaders, opts)
render(
name,
ctx,
cb,
)
renderString(
src,
ctx,
opts,
cb,
)
resolveTemplate(
loader,
parentName,
filename,
)
waterfall(
tasks,
callback,
forceAsync,
)