angel3_mustache

Last updated:

0 purchases

angel3_mustache Image
angel3_mustache Images
Add to Cart

Description:

angel3 mustache

Mustache View Template for Angel3 #




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
copied to clipboard
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'});
}
copied to clipboard
@# 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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.