node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org ยป



Grunt task which replaces file with templated version defined by options. Useful for compile time definitions


Requires a file and an options object with a data object inside. 
The data object contains name-value pairs. e.g.
    file : "some/file.js",
    options : {
        data: {
            foo : "bar"

this will tepmlate '<%= foo %>' into 'bar' in the file some/file.js