Skip to main content
Module

x/nunjucks/mod.js>default.Template

A powerful templating engine with inheritance, asynchronous control, and more (Jinja 2 inspired) — ❌ Deprecated: use the `npm:` specifier instead
Latest
class default.Template
import { default } from "https://deno.land/x/nunjucks@3.2.4/mod.js";
const { Template } = default;

Constructors

new
Template(
src: string,
path?: string,
eagerCompile?: boolean,
)

Methods

render(context?: Record<string, unknown>): string
render(context?: Record<string, unknown>, callback?: TemplateCallback<string>): void