refactoring template rendering to read from classpath by default