0.0.1 • Published 9 years ago

grunt-ejs-layout-include v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
9 years ago

grunt-ejs-layout-include

this modules is forked from grunt-ejs-include (https://www.npmjs.com/package/grunt-ejs-include)

A Grunt task for replacing included ejs templates.

Getting Started

This plugin requires Grunt ~0.4.5

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-ejs-layout-include --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-ejs-layout-include');

The "ejs_include" task

Usage Examples

grunt.initConfig({
  ejs_include: {
    all:{
      src:['main.ejs'],
      dest:'dist/'
    }
  },
});

or

 ejs_include : {
    all :{
        dest: 'public/release_tmp/',
        src :[ 'src/view/**/*.html' ],
        expand : true,
        ext : '.html'
    }
}

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)