DescriptionRemove .tmpl extension from Jinja templates in core
Jinja templates generally use the extension of the file they generate:
"A template is simply a text file. It can generate any text-based format
(HTML, XML, CSV, LaTeX, etc.). It doesn’t have a specific extension,
.html or .xml are just fine."
http://jinja.pocoo.org/docs/templates/
However, we needed to add an extension (here .tmpl) to prevent
check-webkit-style in presubmit scripts from complaining about style,
since it can't understand Jinja syntax.
I fixed this in this CL:
Issue 22514002: Disable check-webkit-style for Jinja templates
https://codereview.chromium.org/22514002/
...and thus there is no more need for these extensions.
I've left the .tmpl for the macros.tmpl file, as that not a specific
output (it's just Jinja macros).
This issue arose in the bindings, so I fixed it there, and for consistency
I'm proposing to change it in core as well; see thread:
https://codereview.chromium.org/21006006/#msg8
https://codereview.chromium.org/21006006/#msg11
https://codereview.chromium.org/21006006/#msg13
https://codereview.chromium.org/21006006/#msg14
https://codereview.chromium.org/21006006/#msg15
Patch Set 1 #Messages
Total messages: 9 (0 generated)
|