{{css}}
Handlebars helper for adding stylesheets based on config settings.
This helper can optionally manage:
- minification
- revisioning / cache-busting
- copying files to dest directory (e.g.
assets/css/
) - deleting files prior to each build
Example
{{#css}} {{/css}}
Results in something like:
Installation
Install with npm
npm i handlebars-helper-css --save-dev
Install with bower
bower install handlebars-helper-css --save-dev
Register the helper
The easiest way to register the helper with Assemble is to add the module to devDependencies
and keywords
in your project's package.json:
Alternatively, to register the helper explicitly in the Gruntfile:
grunt;
Author
Jon Schlinkert
License and Copyright
Copyright (c) 2014 Jon Schlinkert, contributors. Licensed under the MIT License