Skip to main content
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.1.2/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,
)