Skip to main content
Module

x/lume/plugins/modules.ts>ModuleEngine

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class ModuleEngine
implements Engine
import { ModuleEngine } from "https://deno.land/x/lume@v2.1.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