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@v1.17.5/plugins/liquid.ts";

Template engine to render Liquid files

Constructors

new
LiquidEngine(liquid: Liquid, basePath: string)

Properties

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

Methods

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