Grunt task that leverages the ogel templating system.
npm install grunt-ogel --save-dev
The task requires that 3 options be set.
- src: this is where your html files reside
- dest: this is where you want ogel to put the final output
- templateDir: this is where your template files reside
//gruntfile.js
grunt.initConfig({
ogel: {
main: {
options: {
src: 'src',
templateDir: 'src/templates',
dest: 'build'
}
}
}
});