mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-21 16:59:08 +00:00
13 lines
279 B
JavaScript
13 lines
279 B
JavaScript
const Liquid = require('liquidjs')
|
|
|
|
const engine = new Liquid({
|
|
root: __dirname,
|
|
extname: '.liquid'
|
|
})
|
|
const ctx = {
|
|
todos: ['fork and clone', 'make it better', 'make a pull request'],
|
|
title: 'Welcome to liquidjs!'
|
|
}
|
|
|
|
engine.renderFile('todolist', ctx).then(console.log)
|