The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
2017-04-05 18:43:49 -04:00
lib MustacheContext and fixed partials resolving 2017-04-05 14:43:25 -06:00
test Rename all_tests.dart to all_test.dart 2017-04-05 18:41:40 -04:00
.gitignore Done 2016-04-21 22:22:33 -04:00
.travis.yml Create .travis.yml 2017-04-05 18:41:09 -04:00
LICENSE Initial commit 2016-04-21 21:46:25 -04:00
pubspec.yaml Update pubspec.yaml 2017-04-05 18:43:49 -04:00
README.md Update README.md 2017-04-05 18:43:38 -04:00

mustache

version 1.0.1 build status

Mustache (Handlebars) view generator for the Angel web server framework.

Thanks so much @c4wrd for his help with bringing this project to life!

Installation

In pubspec.yaml:

dependencies:
    angel_mustache: ^1.0.0

If your project imports package:angel_common, then this is already installed.

Usage

// Run the plug-in
await app.configure(mustache(new Directory('views')));

// Render `hello.mustache`
await res.render('hello', {'name': 'world'});

Options

  • partialsPath: A path within the viewsDirectory to search for partials in. Default is ./partials.
  • fileExtension: The file extension to search for. Default is .mustache.