separated template parsing / added test
jshint