contents.close();
String fileName = srcFile.getProjectRelativePath().toString().substring("app/".length());
// the compiler assumes the path separator is system specific separator
fileName = fileName.replace('/', File.separatorChar);
JapidTemplate temp = new JapidTemplate(fileName, src);
JapidAbstractCompiler c = null;
if (JapidTemplateTransformer.looksLikeLayout(src)) {
c = new JapidLayoutCompiler();
} else {
// regular template and tag are the same thing