mwunsch/handlebars.scala — pull request #11 by chrhicks (2013-02-15 04:27:25+00:00)
Title: Immediately get the value of an option if he contains simple values

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}}