Skip to content
Myr

fixed but in requirement extraction that came up because the template node doesn't have direct children any more.

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 1ee3095 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja/translators/python.py+1 added-1 removed
320 unmodified lines
321 # are processed as template globals, thus executed *before*322 # the master layout template is loaded. This can be used323 # for further processing. The output of those nodes does324 # not appear in the final template.325 requirements += [child for child in node.get_child_nodes()325 requirements += [child for child in node.body.get_child_nodes()326 if child.__class__ not in (nodes.Text,327 nodes.Block)]328329 # load the template we inherit from and add not known blocks
838 unmodified lines