liquidjs.com Open in urlscan Pro
185.199.108.153  Public Scan

Submitted URL: http://liquidjs.com/
Effective URL: https://liquidjs.com/
Submission: On March 22 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

LIQUIDJS

TutorialsTagsFiltersPlaygroundAPI


English English 简体中文
Github


A SIMPLE, EXPRESSIVE AND SAFE TEMPLATE ENGINE.

npm install liquidjs

2020-02-26
Backers: the first backer contributed to LiquidJS via Open Collective.
2020-03-11
Memory Optimization: a more elaborate parser reducing the memory footprint by
57.7%.
2020-03-15
Performance Boost: a simple AST to improve render performance by 100.3%.
2021-09-30
Streamed Rendering: now render is 4x faster and support streamed rendering.


 * SAFE RENDERING
   
   Liquid templates are highly readable and fault-tolerant thus suitable for
   designers and customers. Operators and expressions are parsed to AST and no
   eval or new Function are used.


 * ZERO DEPENDENCY
   
   Written with zero npm dependency and no native binding, available in both
   Node.js and browsers. All of the CMD, ESM and CJS bundles are available on
   CDN.


 * SHOPIFY COMPATIBLE
   
   All filters and tags from Ruby shopify/liquid are supported by LiquidJS.
   Jekyll sites, Github Pages and Shopify templates can be ported to Node.js
   without pain.


 * TYPESCRIPT STRICT
   
   The whole repo is re-written in TypeScript strict mode to ensure a smooth
   experience using this lib and the document is precise and always up to date.

import { Liquid } from 'liquidjs'
const engine = new Liquid()
const tpl = engine.parse('Welcome to {{v}}!')
engine.render(tpl, {v: "Liquid"}).then(console.log)
// Outputs "Welcome to Liquid!"


Get Started


CONTRIBUTORS

LiquidJS follows the all-contributors specification, see guildelines here!
Thanks goes to these wonderful people:




SPONSORS

If you personally love LiquidJS or it's benefiting your business, please sponsor
us!



© 2024 Harttle
Documentation licensed under CC BY 4.0.


Tutorials
Tags
Filters
Playground
API

English 简体中文