mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
refactor: es6 building and linting
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const Liquid = require('../..')
|
||||
|
||||
let engine = new Liquid()
|
||||
let src = 'Welcome to {{ name | capitalize}}, access time: {{date|date: "%H:%M:%S"}}'
|
||||
let ctx = {
|
||||
name: 'Liquid',
|
||||
date: new Date()
|
||||
}
|
||||
|
||||
engine.parseAndRender(src, ctx).then(console.log)
|
||||
Reference in New Issue
Block a user