Compile Liquid templates.
Compile Liquid (node-liquid) templates.
If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:
npm install --save-dev grunt-liquid
Tip: the load-grunt-tasks module makes it easier to load multiple grunt tasks.
gruntinitConfigliquid:options:includes: 'test/fixtures/inc'products:name: "Wonderflonium"price: "$9.99"description: "Great for building freeze rays!"pages:files:expand: true flatten: true src: 'src/*.liquid' dest: 'dest/' ext: '.html';gruntloadNpmTasks'grunt-liquid';gruntregisterTask'default' 'liquid';
Options beside the following are treated as variables that are injected into the template.
MIT © Marcel Jackwerth