angel3_mustache 8.1.1 copy "angel3_mustache: ^8.1.1" to clipboard
angel3_mustache: ^8.1.1 copied to clipboard

A service that renders Mustache template into HTML view for Angel3

Mustache View Template for Angel3 #

Pub Version (including pre-releases) Null Safety Gitter License

A service that renders Mustache template into HTML view for Angel3 framework.

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

Installation #

In pubspec.yaml:

dependencies:
    angel3_mustache: ^8.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
130
pub points
0%
popularity

Publisher

verified publisherdukefirehawk.com

A service that renders Mustache template into HTML view for Angel3

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

angel3_framework, file, mustache_template, path

More

Packages that depend on angel3_mustache