update license: apache2 - add ext method to templateFile struct