contao/core — Issue #3788: Template *.xhtml5
Author: tristanlins
Created: 2012-01-10 12:18:19+00:00
State: open

I would prefer to have one template ending, that can be used for xhtml AND html5 automatically.
Currently i work on an extension, that does not (need) to use the html5 element in some templates. But this templates are extremely big and if i change one template, i have to totaly change 3 big files (*.xhtml, *.html5, *.tpl). Can't we add another template ending that is used as fallback (not the error triggering *.tpl) for *.xhtml or *.html5?
I know there is an XHTML5 Standard, maybe we should use another extension for this (like *.xhtml45).

In my case i have this template structure:
mod_X.html5 -> uses HTML5 elements
mod_X.xhtml/mod_x.tpl -> uses XHTML4 elements

for details inside of the template i have a backend selectable template:
details_X.html5/details_X.xhtml/details_X.tpl -> all templates are absolutely equal because there is no need for special HTML5 elements (i allready use the HTML5 elements in the mod_X.html5 templates).

This would simplify the template handling in most extensions.
If this feature may be accepted, i would make a pull request, but first i want do discuss about it.