0.1.1 • Published 10 years ago
@quickglance/metalsmith-liquid v0.1.1
metalsmith-liquid
A Metalsmith plugin to render Liquid.
Installation
$ npm install @quickglance/metalsmith-liquid
Usage
  Pass options to the liquid plugin and pass it to metalsmith with the use method:
var liquid = require('metalsmith-liquid');
metalsmith.use(liquid({
    filters: {
        example: function (input) {
            return '<div>' + input + '</div>';
        },
        other: function () {
            return '<h1>Other Example</h1>';
        }
    }
}));Registration of tags
Not supported in this version
In .md files
---
name: Liquid
---
{{name | example}}Results in this html
<div>Liquid</div>License
MIT