platform/packages/mustache
thomashii@dukefirehawk.com 124376e22c Updated to lints 3.0.0
2023-12-25 00:10:10 +08:00
..
example Published mustache 2021-06-26 18:24:52 +08:00
lib Published 8.0.0 2023-06-10 12:10:21 +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 to lints 3.0.0 2023-12-25 00:10:10 +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 Updated to lints 3.0.0 2023-12-25 00:10:10 +08:00
README.md Updated to lints 3.0.0 2023-12-25 00:10:10 +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: ^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.