grunt-templato
Overall project template management using Grunt
Getting Started
This plugin requires Grunt ~0.4.2
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, you may install this plugin with this command:
npm install grunt-templato --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "templato" task
Overview
In your project's Gruntfile, add a section named templato
to the data object passed into grunt.initConfig()
.
grunt;
Options
TODO
Usage Examples
Once you have set up a src & dest path, if you run the task grunt templato
it will generate in your dest folder the same files pointed out by src but processed by the template engine.
files: 'dest/path': 'src/path' // if 'src/path' is a folder, then all files below will be processed recursively // and folder tree structure will be kept in the dest/path folder
Meaning that you have access to all the values you have given to templato
in your files (pointed by your src folder) through the use of <%= VAR_NAME %>
<%= fooTitle %> <%= list.one %> <%= list.two %>
or
or
var dummy = ;console;
Custom Options
TODO
Contributing
Release History
10/01/2014 - v0.0.1