angel_mustache 1.0.3 copy "angel_mustache: ^1.0.3" to clipboard
angel_mustache: ^1.0.3 copied to clipboard

outdatedDart 1 only

Mustache view generator for Angel.

mustache #

version 1.0.3 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.
0
likes
0
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

Mustache view generator for Angel.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

angel_framework, mustache4dart

More

Packages that depend on angel_mustache