Created
March 16, 2010 14:05
-
-
Save jstrachan/333984 to your computer and use it in GitHub Desktop.
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
| def tag(context: RenderContext)(body: => Unit) = { | |
| val text = context.capture(body) | |
| context << ("<h3>Wrapped body</h3><p>" + text + "</p><h3>End of wrapped body</h3>") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment