Skip to content

task: Rename templates to template.html.jinja #151

@pawamoy

Description

@pawamoy

Syntax highlighters do not automatically detect that the templates are Jinja templates because they use the .html extension, so they only highlight them as HTML, not Jinja+HTML. I'd like to rename them to use the .html.jinja extension, to enable automatic Jinja+HTML syntax highlighting.

Since templates are overridable, the file names matter, and that's a breaking change. Therefore it needs a deprecation period where we are able to use both the .html and .html.jinja files while emitting warnings when the .html ones are used.

(Also make sure the handler Copier template uses such extensions too)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions