22 lines
No EOL
498 B
Markdown
22 lines
No EOL
498 B
Markdown
# angel_hbs
|
|
Handlebars view generator for Angel.
|
|
|
|
# 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'});
|
|
```
|
|
|
|
# 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`. |