def is_template_file(path):
 ext = os.path.splitext(path)[1].lower()
 return (ext in [u'.html', u'.htm', u'.xml'])

def is_template_file ( path ) : ext = os . path . splitext ( path ) [ 1 ] . lower ( ) return ( ext in [ u'.html' , u'.htm' , u'.xml' ] )
return true if the given file path is an html file .