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

Mustache view generator for Angel.

mustache #

Gitter version 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: ^2.0.0

Usage #

const FileSystem fs = const LocalFileSystem();

configureServer(Angel app) async {
  // Run the plug-in
  await app.configure(mustache(fs.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
30
pub points
0%
popularity

Publisher

unverified uploader

Mustache view generator for Angel.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

angel_framework, file, mustache4dart, path

More

Packages that depend on angel_mustache