Skip to main content
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.15.2/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