mwunsch/handlebars.scala — pull request #13 by chrhicks (2013-02-15 19:09:56+00:00)
Title:  Better Option support

To ease the use of options in scandlebars.

If you have a property who's value is "Some(Hi)" you can now immediately get the value "Hi" without opening a block. For example:

val context = new { val greeting = Some("Hello") }

When context is passed into a scandelbars template you can get two results

{{! Hello }}
{{greeting}}

or if you want to dive into the Option

{{! HELLO }}
{{#greeting}}{{toUpperCase}}{{/greeting}}