Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmeiklejohn/rebar_js_handlebars_plugin
Rebar support for compilation of Handlebars files.
https://github.com/cmeiklejohn/rebar_js_handlebars_plugin
Last synced: about 2 months ago
JSON representation
Rebar support for compilation of Handlebars files.
- Host: GitHub
- URL: https://github.com/cmeiklejohn/rebar_js_handlebars_plugin
- Owner: cmeiklejohn
- License: apache-2.0
- Created: 2012-08-06T23:11:04.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-26T13:05:39.000Z (over 11 years ago)
- Last Synced: 2024-10-26T08:56:36.068Z (2 months ago)
- Language: Erlang
- Size: 112 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rebar JS Handlebars Plugin
Handlebars support during rebar compilation.
## Installation
Specify ```rebar_js_handlebars_plugin``` as a dependency in your ```rebar.config```.
```erlang
{deps, [
{rebar_js_handlebars_plugin, ".*",
{git, "git://github.com/cmeiklejohn/rebar_js_handlebars_plugin.git", {branch, "master"}}}
]}.
```Then, configure as a plugin in your ```rebar.config```.
```erlang
{plugins, [rebar_js_handlebars_plugin]}.
```## Configuration
Example usage:
```erlang
{js_minispade, [
{doc_root, "priv/assets/javascripts"},
{out_dir, "priv/www/javascripts"},
{target, "Ember.TEMPLATES"},
{compiler, "Ember.Handlebars.compile"},
{templates, [{"templates", ["models"]}]}
]}.
```Produces the following for each input, in one concatenated javascript file called templates.js.
```javascript
Ember.TEMPLATES['models'] = Ember.Handlebars.compile('models
').
```