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

x/lume/plugins/pug.ts>PugEngine

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

Template engine to render Pug files

Constructors

new
PugEngine(
compiler: Compiler,
basePath: string,
options?: PugOptions,
)

Properties

basePath: string
cache: Map<string, (data?: Data) => string>
compiler: Compiler
filters: Record<string, Helper>
options: PugOptions

Methods

addHelper(
name: string,
fn: Helper,
options: HelperOptions,
)
deleteCache(): void
render(
content: string,
data?: Data,
filename?: string,
): string
renderSync(
content: string,
data?: Data,
filename?: string,
): string