https://github.com/tuxracer/grunt-renderer
Render files with handlebars and given data
https://github.com/tuxracer/grunt-renderer
grunt grunt-plugins
Last synced: 8 months 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 (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T19:28:54.000Z (over 9 years ago)
- Last Synced: 2025-01-27T11:16:25.983Z (10 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 Petersen
Licensed under the MIT license.