fix psr2, ignore template file