changes for detecting atpl as html templates