scalate/scalate — pull request #18 by rocketraman (2012-01-30 19:58:38+00:00)
Title: Source reset fix

Support multiple Source reads by using the reset function. See commit log messages for details and explanation.

A usage scenario for a caller would be:

```scala
def getTemplateSource(key: String): Source = Source.fromInputStream(getClass.getResourceAsStream(key))
.withReset { () => getTemplateSource(key) }

engine.layout(getTemplateSource("foo"), ...));
```