Lines Matching refs:template
58 if not isinstance(node, nodes.Template):
59 raise TypeError('Can\'t compile non template nodes')
388 # can safely assume that we're a child template and do some
659 # declared locally *and* part of an outside scope raise a template
857 """Call a block and register it for the template."""
860 # if we know that we are a child template, there is no need to
883 # the template before this one.
886 # if we have a known extends we just add a template runtime
897 # as we know that the template execution will end here.
904 self.visit(node.template, frame)
931 if isinstance(node.template, nodes.Const):
932 if isinstance(node.template.value, string_types):
934 elif isinstance(node.template.value, (tuple, list)):
936 elif isinstance(node.template, (nodes.Tuple, nodes.List)):
939 self.writeline('template = environment.%s(' % func_name, node)
940 self.visit(node.template, frame)
952 self.writeline('for event in template.root_render_func('
953 'template.new_context(context.parent, True, '
956 self.writeline('for event in template.module._body_stream:')
973 self.visit(node.template, frame)
987 self.visit(node.template, frame)
1008 (alias, 'the template %%r (imported on %s) does '
1067 # make sure the loop variable is a special one and raise a template
1338 # the current template's context. We create a copy of the frame