bldr = new groovy.xml.MarkupBuilder()
bldr.html {
body {
h1('foo')
}
}
When you press Apple R to run it, the popup window shows "foo" instead of the actual HTML output.

A little tweak to the bundle can fix this problem and make things more convenient. In TextMate, go to Bundles -> Bundle Editor -> Show Bundle Editor and navigate down to the Run command under Groovy.

Change the exit_show_html to exit_show_tool_tip. Close the Bundle Editor and back in the TextMate editor, press Apple R to see the output appear as tool tip.

1 comment:
That's nice, I was looking for this,
thanks
Post a Comment