process ejs template
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
.gitignore
Gruntfile.js
README.md
package.json

README.md

grunt-simple-ejs

process ejs template

usage

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        ejs: {
           dev: {
               templateRoot: 'src/ejs',
               template: [ '*.ejs', 'article/*.ejs' ],
               dest: './',
               include: ['bower_components/external-templates/*.ejs'],
               options: [ 'option.dev.json', { env: 'dev' } ]
           }
        }
    });

    grunt.loadNpmTasks('grunt-simple-ejs');
    grunt.registerTask('default', ['ejs:dev']);
};