https://github.com/passbolt/grunt-passbolt-ejs-compile
https://github.com/passbolt/grunt-passbolt-ejs-compile
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/passbolt/grunt-passbolt-ejs-compile
- Owner: passbolt
- Archived: true
- Created: 2017-08-23T06:20:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-08T08:06:11.000Z (almost 9 years ago)
- Last Synced: 2025-01-15T23:16:22.029Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grunt-ejs
A Grunt task for compiling [ejs](http://npmjs.org/package/ejs) templates.
## Getting Started
Install this grunt plugin next to your project's
[Gruntfile.js](http://gruntjs.com/getting-started) with: `npm install grunt-passbolt-ejs-compile --save-dev`.
Then add this line to your project's `Gruntfile.js`:
```javascript
grunt.loadNpmTasks('grunt-passbolt-ejs-compile');
```
## Documentation
Add the task to your config and specify the destination for the compiled file:
```javascript
grunt.initConfig({
ejs_compile: {
all: {
cwd: path.src_templates,
src: ['**/*.ejs'],
dest: path.build_templates,
expand: true,
ext: '.js',
options: {
delimiter: '?'
}
}
}
});
```
## License
Licensed under the AGPL-3.0 license.