StringTemplate compile and resolve on demand