Skip to content
Myr

[svn] renderincluded is now rendertemplate

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 74a7278 · Browse files · 2 files+8 added−2 removed
This commit

State

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

Diff stats

2 files+8 added−2 removed

  • other:+8 added−2 removed

2 files+8 added−2 removed

modified:docs/src/designerdoc.txt+7 added-1 removed
364 unmodified lines
365366If you define a macro called ``my_helper`` in ``myhelpers.html``, you can now367use it from the template as shown above.368369Because of the369Please keep in mind that include does not render the template indenpendently370but includes the processing instructions into the current template. Thus if the371included template contains a ``{% extends %}`` tag it also affects the current372template.373374This is intended because it makes it possible to include macros from other375templates.376377Filtering Blocks378================379380Sometimes it could be a good idea to filter a complete block of text. For
126 unmodified lines
modified:jinja/defaults.py+1 added-1 removed
20 unmodified lines
21 'range': safe_range,22 'debug': debug_helper,23 'lipsum': generate_lorem_ipsum,24 'watchchanges': watch_changes,25 'renderincluded': render_included25 'rendertemplate': render_included26}