Skip to main content
Module

x/lume/core.ts>Engine

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface Engine
Re-export
import { type Engine } from "https://deno.land/x/lume@v1.13.1/core.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