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

x/lume/plugins/liquid.ts>LiquidEngine

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class LiquidEngine
implements Engine
import { LiquidEngine } from "https://deno.land/x/lume@v2.4.1/plugins/liquid.ts";

Template engine to render Liquid files

Constructors

new
LiquidEngine(
liquid: Liquid,
basePath: string,
includes: string,
)

Properties

basePath: string
cache: Map<string, Template[]>
includes: string
liquid: Liquid

Methods

addHelper(
name: string,
fn: Helper,
options: HelperOptions,
)
deleteCache(file: string): void
getTemplate(content: string, filename: string): Template[]
render(
content: string,
data?: Record<string, unknown>,
filename?: string,
)
renderComponent(
content: string,
data?: Record<string, unknown>,
filename?: string,
)