2016-04-22 01:46:25 +00:00
|
|
|
# angel_hbs
|
|
|
|
Handlebars view generator for Angel.
|
2016-04-22 02:22:33 +00:00
|
|
|
|
|
|
|
# Installation
|
|
|
|
In `pubspec.yaml`:
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
angel_mustache: ">= 1.0.0-dev < 2.0.0"
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
```
|
|
|
|
app.configure(mustache(new Directory('views')));
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
res.render('hello', {'name': 'world'});
|
2016-05-02 23:28:37 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# Options
|
|
|
|
- **partialsPath**: A path within the viewsDirectory to search for partials in.
|
|
|
|
Default is `./partials`. *Include the leading dot, please*.
|
|
|
|
- **fileExtension**: The file extension to search for. Default is `.mustache`.
|