Add nested sections test
1 file changed
tree: 4fa6c0a4e24a9e15a791bb73c46ff5380534275a
  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);
}