Add strict/lenient mode
5 files changed
tree: 8e4a0cd31aded8852a65cf6f3b6c2bdaf2f2185d
  1. lib/
  2. test/
  3. .gitignore
  4. check.sh
  5. LICENSE
  6. pubspec.yaml
  7. README.md
README.md

Mustache templates

A Dart library to parse and render mustache templates.

Example

import 'package:mustache/mustache.dart';

main() {
	var source = '{{#section}}_{{var}}_{{/section}}';
	var values = {"section": {"var": "bob"}};
	var template = parse(source);
	var output = template.render(values);
	print(output);
}