Skip to content

Add backend support for alternate Freemarker suffixes besides .ftl (.ftlh .ftlx) #8737

Description

@jvega190

CI Number

No response

Duplicates

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

.ftl Freemarker templates do not auto-escape outputted content at all, but best practices for html and xml output formats are to escape characters as needed.

The feature can be turned on manually using the built-in <#outputformat ...> directive, but this is not pretty and is very likely to be forgotten by developers. Freemarker automatically escapes for html and xml when the template filename ends with .ftlh and .ftlx, respectively.

Describe the solution you'd like

Support alternate Freemarker suffixes besides .ftl (.ftlh .ftlx). This includes:

  • itemActions
  • mimeTypes
  • engine preview (it seems like it is already supported)

Metadata

Metadata

Assignees

Projects

Status
Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions