grunt-jst-prepend v0.0.1
Prepend some variables to the generated template files by grunt-contrib-jst module.
Getting Started
This plugin requires Grunt ~0.4.0
npm install grunt-jst-prepend --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
Options
prepend
Type: function
or string
The variables declared before compiling templates, which will be prepend to the generated template files. It is usefull when one just need the _.template() method but don't want to use the whole underscore or lodash lib. If the option prettify is true then all whitespaces in the prepend string will be removed.
{var {var _ = {};_ {var escapeMap ='&': '&''<': '<''>': '>''"': '"'"'": ''';var escapeRegexe = '[' + Object + ']' 'g';if string == null return '';return '' + string;};};var entire = vars;return entire;}
Please go to grunt-contrib-jst to read more.