Created
August 29, 2012 11:08
-
-
Save wfaler/3510773 to your computer and use it in GitHub Desktop.
reassignment_to_new_val.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
viewContent.map{content => | |
val model = mergedModel.updated(template.contentPlaceHolder, content) | |
val content = render(template.name, model) | |
template.parent.map(layout => Scalate(layout, model, Some(content))).getOrElse(content) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment