Module

x/lume/plugins/eta.ts>EtaEngine

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class EtaEngine
implements Engine
import { EtaEngine } from "https://dotland.deno.dev/x/lume@v2.4.2/plugins/eta.ts";

Template engine to render Eta files

Constructors

new
EtaEngine(
engine: Eta,
basePath: string,
includes: string,
)

Properties

basePath: string
engine: Eta
filters: Record<string, Helper>
includes: string

Methods

addHelper(
name: string,
fn: Helper,
options: HelperOptions,
)
deleteCache(file: string): void
getTemplate(
content: string,
filename: string,
async?: boolean,
)
render(
content: string,
data: Record<string, unknown>,
filename: string,
)
renderComponent(
content: string,
data: Record<string, unknown>,
filename: string,
): string