xxgreg / mustache

Mustache template Dart library
BSD 2-Clause "Simplified" License
57 stars 59 forks source link

Allow arbitrary objects for truthiness checks in lenient mode, run dartf... #21

Closed mkustermann closed 9 years ago

mkustermann commented 9 years ago

This aligns the dart implementation slightly with the python implementation of mustache (which allows arbitrary values to be used in sections). It is also very convenient to be able to say

{{#package}}The package is {{package}} - yes!{{/package}}

and render it with {'package' : 'my package name'}.

xxgreg commented 9 years ago

Cool. Thanks for this, and for taking the time to write some tests ;)

xxgreg commented 9 years ago

I've pushed version 0.2.3 to pub which contains this patch.