Search code examples
mime-typesfreemarkercontent-type

Is there a MIME Type for FreeMarker templates?


I need to distinguish between different type of HTML templates, e.g. a FreeMarker from an Handlebars template. Since the templates are in a database (so they are not files, i.e. no filename nor extension) I'd like to use MIME types to identify them.

For Handlebars there is a custom MIME type largely used: text/x-handlebars-template, but I can't find one for FreeMarker.

I understand I can use a custom one, e.g. text/ftl+html, but I'd like to use the right one if it exists.


Solution

  • There isn't any. (The text/ftl+html you mention is I guess for .ftlh files, but shouldn't it have an x- in it as well?)