Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuxracer/grunt-renderer
Render files with handlebars and given data
https://github.com/tuxracer/grunt-renderer
grunt grunt-plugins
Last synced: about 1 month ago
JSON representation
Render files with handlebars and given data
- Host: GitHub
- URL: https://github.com/tuxracer/grunt-renderer
- Owner: tuxracer
- License: mit
- Created: 2013-09-07T08:30:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T19:28:54.000Z (almost 9 years ago)
- Last Synced: 2024-11-14T13:44:31.883Z (about 2 months ago)
- Topics: grunt, grunt-plugins
- Language: CoffeeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-renderer
Renders Handlebars files with given data.
[grunt]: https://github.com/gruntjs/grunt
[getting_started]: https://github.com/gruntjs/grunt/wiki/Getting-started## Getting Started
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: ``npm install grunt-renderer --save-dev``Then add this line to your project's ``Gruntfile.coffee``:
```coffeescript
grunt.loadNpmTasks 'grunt-renderer'
```## Documentation
```coffeescript
grunt.initConfig# ... other configs
renderer:
index:
cwd: 'public/'
src: ['index.hbs']
dest: 'index.html'# Data to be passed to the template
options:
data:
favicon: 'http://cdn/favicon.ico'# ... other configs
```## 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][grunt].## License
Copyright (c) 2013, Derek PetersenLicensed under the MIT license.