compiled_mustache 1.0.2

  • Installing
  • Versions
  • 48


Travis Pub

This is a lightweight mustache renderer for Dart. It is 2-15x faster than mustache4dart, and provides the ability to cache parsed templates to avoid having to read from disk and parse files on every render.



  • Switch to automatic deployment


  • Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  compiled_mustache: "^1.0.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:compiled_mustache/compiled_mustache.dart';
Version Uploaded Documentation Archive
1.0.2 Dec 2, 2017 Go to the documentation of compiled_mustache 1.0.2 Download compiled_mustache 1.0.2 archive
1.0.1 Nov 29, 2017 Go to the documentation of compiled_mustache 1.0.1 Download compiled_mustache 1.0.1 archive
1.0.0 Nov 29, 2017 Go to the documentation of compiled_mustache 1.0.0 Download compiled_mustache 1.0.0 archive


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
95 / 100
Reflects how tidy and up-to-date the package is. [more]
99 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Primary library: package:compiled_mustache/compiled_mustache.dart with components: io.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 9 hints.

    Strong-mode analysis of lib/src/context.dart failed with the following error:

    line: 40 col: 20
    The operator '[]' isn't defined for the class 'Object'.

    Run dartfmt to format lib/compiled_mustache.dart.

    Similar analysis of the following files failed:

    • lib/src/compiled_template.dart (hint)
    • lib/src/compiler.dart (hint)
    • lib/src/delimiter.dart (hint)
    • lib/src/node.dart (hint)
    • lib/src/parser.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use compiled_mustache.dart.


Package Constraint Resolved Available
Dev dependencies
benchmark_harness >=1.0.0 <2.0.0
grinder ^0.8.0
mustache4dart ^2.1.0
path ^1.5.0
test ^0.12.27
yaml ^2.1.13