Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwitzko/grunt-eejs
render ejs templates
https://github.com/christophwitzko/grunt-eejs
Last synced: 23 days ago
JSON representation
render ejs templates
- Host: GitHub
- URL: https://github.com/christophwitzko/grunt-eejs
- Owner: christophwitzko
- License: mit
- Created: 2014-12-20T13:29:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-20T21:56:37.000Z (over 8 years ago)
- Last Synced: 2024-10-13T18:25:45.029Z (25 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/grunt-eejs
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-eejs
> render ejs templates
## Getting Started
This plugin requires Grunt `~0.4.5`If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
npm install grunt-eejs --save-dev
```Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('grunt-eejs');
```## The "eejs" task
### Options
#### options.titlesConfigName
Type: `String`
Default value: `'titles'`### Usage Examples
```js
grunt.initConfig({
titles: {
'src/test.ejs': 'TEST'
},
eejs: {
options: {
hello: function(name){return 'Hello ' + name + '!'}
},
files: {
'dest/test.html': 'src/test.ejs',
},
},
});
```