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
Go to Latest
class LiquidEngine
implements Engine
import { LiquidEngine } from "https://deno.land/x/lume@v2.2.4/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,
)