The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
2016-05-02 19:28:37 -04:00
lib Async, partials 2016-05-02 19:28:37 -04:00
test Async, partials 2016-05-02 19:28:37 -04:00
.gitignore Done 2016-04-21 22:22:33 -04:00
LICENSE Initial commit 2016-04-21 21:46:25 -04:00
pubspec.yaml Async, partials 2016-05-02 19:28:37 -04:00
README.md Async, partials 2016-05-02 19:28:37 -04:00

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.