A friend of mine is coming to groovy and wanted to know if there's a magical way to load a classpath resource (xml file in this case).
I suggested something like,
def stream = getClass().getResourceAsStream("/Template.xml")
def template = stream.text
Apparently that is not enough magic though.
Is there a way to write something like:
def context = new Resource("/template.xml").text ? I can't imagine how much more magical it could be.