Move templates to separate files
Configure build task to work with external templates