Module

x/lume/plugins/modules.ts>ModuleEngine

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

Template engine to render js/ts files

Constructors

new
ModuleEngine(includes: string)

Properties

helpers: Record<string, Helper>
includes: string

Methods

addHelper(name: string, fn: Helper)
render(content: unknown, data: Record<string, unknown>): Promise<unknown>
renderComponent(content: unknown, data: Record<string, unknown>): string