I use Scalate for templating. Usually it goes this way:
Template:
Hello {{name}}Parameters:
`Map("name" -> "Peter")
Result:
Hello Peter
Is there a way to get the Parameter Map as Result?
Template:
Hello {{name}}Request:
Hello PeterResult:
Map("name" -> "Peter")
Maybe you're looking for regex with named groups?