Assemble engine plugin for processing swig templates.
npm install assemble-swig~0.4.1
shell
npm install assemble-swig --save-dev
`
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('assemble-swig');
`
The Assemble task
_Run this task with the grunt swig command._
$3
In your project's Gruntfile, add a section named assemble to the data object passed into grunt.initConfig().
#### Usage Example
`js
grunt.initConfig({
assemble: {
options: {
engine: 'swig'
},
site: {
files: {
'_gh_pages/': ['src/templates/*/.swig']
}
}
}
});
`
$3
#### options.engine
Type: String
Specify the current engine for Assemble to use for processing templates.
`js
assemble: {
options: {
engine: 'swig'
}
}
``