2.0.1 • Published 10 years ago

grunt-liquid v2.0.1

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

grunt-liquid Build Status

Compile Liquid (node-liquid) templates.

Getting Started

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

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-liquid');

Tip: the load-grunt-tasks module makes it easier to load multiple grunt tasks.

Documentation

See the grunt docs on how to configure tasks and more advanced usage.

Example

grunt.initConfig({
  liquid: {
    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' }
      ]
    }
  },
});

grunt.loadNpmTasks('grunt-liquid');
grunt.registerTask('default', ['liquid']);

Options

Options beside the following are treated as variables that are injected into the template.

includes

Type: Array or String
Default: ""

License

MIT © Marcel Jackwerth

2.0.1

10 years ago

2.0.0

10 years ago

0.0.8

10 years ago

0.2.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

11 years ago

0.0.1

11 years ago