Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/plugins/modules.ts>ModuleEngine

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