Skip to content
Myr

document lack of file extension

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #547

authored by David Lord · committed by David Lord · parent aad4dcf · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • other:+14 added−0 removed

1 file+14 added−0 removed

modified:docs/templates.rst+14 added
55 unmodified lines
56* ``{# ... #}`` for :ref:`Comments` not included in the template output57* ``# ... ##`` for :ref:`Line Statements <line-statements>`585960Template File Extension61~~~~~~~~~~~~~~~~~~~~~~~6263As stated above, any file can be loaded as a template, regardless of64file extension. Adding a ``.jinja`` extension, like ``user.html.jinja``65may make it easier for some IDEs or editor plugins, but is not required.66Autoescaping, introduced later, can be applied based on file extension,67so you'll need to take the extra suffix into account in that case.6869Another good heuristic for identifying templates is that they are in a70``templates`` folder, regardless of extension. This is a common layout71for projects.727374.. _variables:7576Variables77---------
1720 unmodified lines