use default_mime_type to detect template type