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

x/lume/core/renderer.ts>Engine

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface Engine
import { type Engine } from "https://deno.land/x/lume@v1.14.1/core/renderer.ts";

An interface used by all template engines

Type Parameters

optional
T = string | { toString(): string; }

Methods

deleteCache(file: string): void

Delete a cached template

render(
content: unknown,
data?: Data,
filename?: string,
): T | Promise<T>

Render a template (used to render pages)

renderSync(
content: unknown,
data?: Data,
filename?: string,
): T

Render a template synchronous (used to render components)

addHelper(
name: string,
fn: Helper,
options: HelperOptions,
): void

Add a helper to the template engine