Created
March 16, 2010 13:17
-
-
Save chirino/333951 to your computer and use it in GitHub Desktop.
This file contains 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 mytag(body: => Unit) = { | |
import RenderContext() | |
val text = capture(body) | |
println("Evaluated text: " + text) | |
<< ("<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