Skip to main content
Module

x/lume/plugins/eta.ts>EtaEngine

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class EtaEngine
implements Engine
import { EtaEngine } from "https://deno.land/x/lume@v1.15.1/plugins/eta.ts";

Template engine to render Eta files

Constructors

new
EtaEngine(engine: eta, basePath: string)

Properties

basePath: string
engine: eta
filters: Record<string, Helper>

Methods

addHelper(
name: string,
fn: Helper,
options: HelperOptions,
)
deleteCache(file: string): void
getTemplate(
content: string,
filename: string,
options?: Partial<EtaConfig>,
)
render(
content: string,
data: Data,
filename: string,
)
renderSync(
content: string,
data: Data,
filename: string,
): string