标签:github file const rtt root size require scroll UNC
liquidjs 是兼容shopify liquid 的纯js 模板引擎,同时官方文档也比较完整
const { Liquid } = require(‘liquidjs‘);
const path = require("path")
var engine = new Liquid({
root:path.resolve(__dirname, ‘t/‘)
});
engine.renderFile(‘index.html‘, {v: "Liquid"}).then(console.log)
实际上liquidjs 很多地方与jinja2是一样的,模板布局,表达式,filter。。。。
https://shopify.github.io/liquid/
https://github.com/harttle/liquidjs
https://github.com/Shopify/liquid
https://liquidjs.com/
liquidjs 兼容shopify liquid 的纯js 模板引擎
标签:github file const rtt root size require scroll UNC
原文地址:https://www.cnblogs.com/rongfengliang/p/14773232.html