platform/packages/mustache
thomashii@dukefirehawk.com 5bea55d2c0 Updated Change Log
2022-08-16 19:19:04 +08:00
..
example Published mustache 2021-06-26 18:24:52 +08:00
lib Published mustache 2021-06-26 18:24:52 +08:00
test Published mustache 2021-06-26 18:24:52 +08:00
.gitignore Add 'packages/mustache/' from commit 'd0335a925d7199f3a5988ca10da36fee38ce0c43' 2020-02-15 18:29:03 -05:00
analysis_options.yaml Updated linter 2022-01-04 20:03:52 +08:00
AUTHORS.md Merged from sdk-2.12.x_nnbd 2021-06-20 20:37:20 +08:00
CHANGELOG.md Updated Change Log 2022-08-16 19:19:04 +08:00
LICENSE Updated linter 2022-01-04 20:03:52 +08:00
melos_angel3_mustache.iml Added melos 2022-03-19 09:37:28 +08:00
mustache.iml Add 'packages/mustache/' from commit 'd0335a925d7199f3a5988ca10da36fee38ce0c43' 2020-02-15 18:29:03 -05:00
pubspec.yaml Upgraded to min SDK 2.17 2022-08-14 10:17:59 +08:00
README.md Updated README 2022-04-24 08:55:17 +08:00

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: ^6.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.