Closed daveaglick closed 3 years ago
Interesting discussion of file extensions for HTML fragments at https://stackoverflow.com/questions/811887/what-extension-should-i-use-for-files-containing-fragments-of-html. Our requirements a little unique in that it has to be a separate extension since we need to map it to a media type for template processing.
This is done, shipping now. Ended up settling on .fhtml
for HTML fragments that should get processed by templates.
If we've got a full HTML file we shouldn't apply layouts and other templates. I.e. it's assumed the HTML file is complete. Instead we should consider some alternate extension to indicate HTML-like content that should have layouts applies (is there any established extension or convention for this?).