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

x/nunjucks/mod.d.ts>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.d.ts";
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