Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str keyword Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr keyword Str keyword NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Str keyword Str ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Str keyword Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str Str decorator_list decorator_list
N/A mako.template Template mako lookup util flatten_result result_lines test TemplateTest eq_ NamespaceTest N/A TemplateTest N/A test_inline_crossreference N/A N/A self N/A N/A N/A N/A N/A self _do_memory_test 
            <%namespace name="x">
                <%def name="a()">
                    this is x a
                </%def>
                <%def name="b()">
                    this is x b, and heres ${a()}
                </%def>
            </%namespace>
 
            ${x.a()}
 
            ${x.b()}
     this is x a this is x b, and heres this is x a filters flatten_result N/A test_inline_assignment N/A N/A self N/A N/A N/A N/A N/A self _do_memory_test 
            <%namespace name="x">
                <%def name="a()">
                    <%
                        x = 5
                    %>
                    this is x: ${x}
                </%def>
            </%namespace>

            ${x.a()}

     this is x: 5 filters flatten_result N/A test_inline_arguments N/A N/A self N/A N/A N/A N/A N/A self _do_memory_test 
            <%namespace name="x">
                <%def name="a(x, y)">
                    <%
                        result = x * y
                    %>
                    result: ${result}
                </%def>
            </%namespace>

            ${x.a(5, 10)}

     result: 50 filters flatten_result N/A test_inline_not_duped N/A N/A self N/A N/A N/A N/A N/A self _do_memory_test 
            <%namespace name="x">
                <%def name="a()">
                    foo
                </%def>
            </%namespace>

            <%
                assert x.a is not UNDEFINED, "namespace x.a wasn't defined"
                assert a is UNDEFINED, "name 'a' is in the body locals"
            %>

     filters flatten_result N/A test_dynamic N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string a 
        <%namespace name="b" file="${context['b_def']}"/>

        a.  b: ${b.body()}
 N/A N/A N/A collection put_string b 
        b.
 N/A N/A eq_ N/A flatten_result N/A N/A N/A N/A collection get_template a render b_def b a. b: b. N/A test_template N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace name="comp" file="defs.html"/>
 
        this is main.  ${comp.def1("hi")}
        ${comp.def2("there")}
 N/A N/A N/A collection put_string defs.html 
        <%def name="def1(s)">
            def1: ${s}
        </%def>
 
        <%def name="def2(x)">
            def2: ${x}
        </%def>
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. def1: hi def2: there N/A test_module N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace name="comp" module="test.sample_module_namespace"/>

        this is main.  ${comp.foo1()}
        ${comp.foo2("hi")}
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. this is foo1. this is foo2, x is hi N/A test_module_2 N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace name="comp" module="test.foo.test_ns"/>

        this is main.  ${comp.foo1()}
        ${comp.foo2("hi")}
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. this is foo1. this is foo2, x is hi N/A test_module_imports N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace import="*" module="test.foo.test_ns"/>

        this is main.  ${foo1()}
        ${foo2("hi")}
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. this is foo1. this is foo2, x is hi N/A test_module_imports_2 N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace import="foo1, foo2" module="test.foo.test_ns"/>

        this is main.  ${foo1()}
        ${foo2("hi")}
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. this is foo1. this is foo2, x is hi N/A test_context N/A N/A self N/A N/A N/A test that namespace callables get access to the current context N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace name="comp" file="defs.html"/>

        this is main.  ${comp.def1()}
        ${comp.def2("there")}
 N/A N/A N/A collection put_string defs.html 
        <%def name="def1()">
            def1: x is ${x}
        </%def>

        <%def name="def2(x)">
            def2: x is ${x}
        </%def>
 N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render x context x this is main. def1: x is context x def2: x is there N/A test_overload N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
        <%namespace name="comp" file="defs.html">
            <%def name="def1(x, y)">
                overridden def1 ${x}, ${y}
            </%def>
        </%namespace>

        this is main.  ${comp.def1("hi", "there")}
        ${comp.def2("there")}
     N/A N/A N/A collection put_string defs.html 
        <%def name="def1(s)">
            def1: ${s}
        </%def>

        <%def name="def2(x)">
            def2: ${x}
        </%def>
     N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is main. overridden def1 hi, there def2: there N/A test_getattr N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
            <%namespace name="foo" file="ns.html"/>
            <%
                 if hasattr(foo, 'lala'):
                     foo.lala()
                 if not hasattr(foo, 'hoho'):
                     context.write('foo has no hoho.')
            %>
          N/A N/A N/A collection put_string ns.html 
          <%def name="lala()">this is lala.</%def>
         N/A N/A N/A flatten_result N/A N/A N/A N/A collection get_template main.html render this is lala.foo has no hoho. N/A test_in_def N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
            <%namespace name="foo" file="ns.html"/>
 
            this is main.  ${bar()}
            <%def name="bar()">
                this is bar, foo is ${foo.bar()}
            </%def>
         N/A N/A N/A collection put_string ns.html 
            <%def name="bar()">
                this is ns.html->bar
            </%def>
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template main.html render N/A this is main. this is bar, foo is this is ns.html->bar N/A test_in_remote_def N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string main.html 
            <%namespace name="foo" file="ns.html"/>

            this is main.  ${bar()}
            <%def name="bar()">
                this is bar, foo is ${foo.bar()}
            </%def>
         N/A N/A N/A collection put_string ns.html 
            <%def name="bar()">
                this is ns.html->bar
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%namespace name="main" file="main.html"/>
 
            this is index
            ${main.bar()}
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is index this is bar, foo is this is ns.html->bar N/A test_dont_pollute_self N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 

        <%def name="foo()">
        <%
            foo = local.get_namespace("foo.html")
        %>
        </%def>

        name: ${self.name}
        name via bar: ${bar()}

        ${next.body()}

        name: ${self.name}
        name via bar: ${bar()}
        <%def name="bar()">
            ${self.name}
        </%def>


         N/A N/A N/A collection put_string page.html 
        <%inherit file="base.html"/>

        ${self.foo()}

        hello world

         N/A N/A N/A collection put_string foo.html <%inherit file="base.html"/> N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template page.html render N/A name: self:page.html name via bar: self:page.html hello world name: self:page.html name via bar: self:page.html N/A test_inheritance N/A N/A self N/A N/A N/A test namespace initialization in a base inherited template that doesnt otherwise access the namespace N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%namespace name="foo" file="ns.html" inheritable="True"/>
 
            ${next.body()}
 N/A N/A N/A collection put_string ns.html 
            <%def name="bar()">
                this is ns.html->bar
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%inherit file="base.html"/>
 
            this is index
            ${self.foo.bar()}
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is index this is ns.html->bar N/A test_inheritance_two N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%def name="foo()">
                base.foo
            </%def>
 
            <%def name="bat()">
                base.bat
            </%def>
 N/A N/A N/A collection put_string lib.html 
            <%inherit file="base.html"/>
            <%def name="bar()">
                lib.bar
                ${parent.foo()}
                ${self.foo()}
                ${parent.bat()}
                ${self.bat()}
            </%def>
 
            <%def name="foo()">
                lib.foo
            </%def>
 
         N/A N/A N/A collection put_string front.html 
            <%namespace name="lib" file="lib.html"/>
            ${lib.bar()}
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template front.html render N/A lib.bar base.foo lib.foo base.bat base.bat N/A test_attr N/A N/A self N/A N/A N/A l N/A N/A lookup TemplateLookup N/A N/A N/A l put_string foo.html 
        <%!
            foofoo = "foo foo"
            onlyfoo = "only foo"
        %>
        <%inherit file="base.html"/>
        <%def name="setup()">
            <%
            self.attr.foolala = "foo lala"
            %>
        </%def>
        ${self.attr.basefoo}
        ${self.attr.foofoo}
        ${self.attr.onlyfoo}
        ${self.attr.lala}
        ${self.attr.foolala}
         N/A N/A N/A l put_string base.html 
        <%!
            basefoo = "base foo 1"
            foofoo = "base foo 2"
        %>
        <%
            self.attr.lala = "base lala"
        %>
 
        ${self.attr.basefoo}
        ${self.attr.foofoo}
        ${self.attr.onlyfoo}
        ${self.attr.lala}
        ${self.setup()}
        ${self.attr.foolala}
        body
        ${self.body()}
         N/A N/A N/A result_lines N/A N/A N/A N/A l get_template foo.html render N/A base foo 1 foo foo only foo base lala foo lala body base foo 1 foo foo only foo base lala foo lala N/A test_attr_raise N/A N/A self N/A N/A N/A l N/A N/A lookup TemplateLookup N/A N/A N/A l put_string foo.html 
            <%def name="foo()">
            </%def>
         N/A N/A N/A l put_string bar.html 
        <%namespace name="foo" file="foo.html"/>
 
        ${foo.notfoo()}
         N/A N/A N/A self assertRaises AttributeError N/A N/A N/A l get_template bar.html render N/A test_custom_tag_1 N/A N/A self N/A N/A N/A template N/A Template 
 
            <%def name="foo(x, y)">
                foo: ${x} ${y}
            </%def>
 
            <%self:foo x="5" y="${7+8}"/>
         N/A N/A N/A result_lines N/A N/A template render N/A foo: 5 15 N/A test_custom_tag_2 N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%def name="foo(x, y)">
                foo: ${x} ${y}
            </%def>
 
            <%def name="bat(g)"><%
                return "the bat! %s" % g
            %></%def>
 
            <%def name="bar(x)">
                ${caller.body(z=x)}
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%namespace name="myns" file="base.html"/>
 
            <%myns:foo x="${'some x'}" y="some y"/>
 
            <%myns:bar x="${myns.bat(10)}" args="z">
                record: ${z}
            </%myns:bar>
 
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A foo: some x some y record: the bat! 10 N/A test_custom_tag_3 N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%namespace name="foo" file="ns.html" inheritable="True"/>

            ${next.body()}
     N/A N/A N/A collection put_string ns.html 
            <%def name="bar()">
                this is ns.html->bar
                caller body: ${caller.body()}
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%inherit file="base.html"/>

            this is index
            <%self.foo:bar>
                call body
            </%self.foo:bar>
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is index this is ns.html->bar caller body: call body N/A test_custom_tag_case_sensitive N/A N/A self N/A N/A N/A t N/A Template 
        <%def name="renderPanel()">
            panel ${caller.body()}
        </%def>

        <%def name="renderTablePanel()">
            <%self:renderPanel>
                hi
            </%self:renderPanel>
        </%def>
 
        <%self:renderTablePanel/>
         N/A N/A N/A result_lines N/A N/A t render N/A panel hi N/A test_expr_grouping N/A N/A self N/A N/A N/A test that parenthesis are placed around string-embedded expressions. N/A template N/A Template 
            <%def name="bar(x, y)">
                ${x}
                ${y}
            </%def>
 
            <%self:bar x=" ${foo} " y="x${g and '1' or '2'}y"/>
         input_encoding utf-8 N/A N/A N/A result_lines N/A N/A template render foo this is foo g False N/A this is foo x2y N/A test_ccall N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%namespace name="foo" file="ns.html" inheritable="True"/>

            ${next.body()}
     N/A N/A N/A collection put_string ns.html 
            <%def name="bar()">
                this is ns.html->bar
                caller body: ${caller.body()}
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%inherit file="base.html"/>

            this is index
            <%call expr="self.foo.bar()">
                call body
            </%call>
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is index this is ns.html->bar caller body: call body N/A test_ccall_2 N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string base.html 
            <%namespace name="foo" file="ns1.html" inheritable="True"/>

            ${next.body()}
     N/A N/A N/A collection put_string ns1.html 
            <%namespace name="foo2" file="ns2.html"/>
            <%def name="bar()">
                <%call expr="foo2.ns2_bar()">
                this is ns1.html->bar
                caller body: ${caller.body()}
                </%call>
            </%def>
         N/A N/A N/A collection put_string ns2.html 
            <%def name="ns2_bar()">
                this is ns2.html->bar
                caller body: ${caller.body()}
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%inherit file="base.html"/>

            this is index
            <%call expr="self.foo.bar()">
                call body
            </%call>
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is index this is ns2.html->bar caller body: this is ns1.html->bar caller body: call body N/A test_import N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string functions.html 
            <%def name="foo()">
                this is foo
            </%def>
 
            <%def name="bar()">
                this is bar
            </%def>
 
            <%def name="lala()">
                this is lala
            </%def>
         N/A N/A N/A collection put_string func2.html 
            <%def name="a()">
                this is a
            </%def>
            <%def name="b()">
                this is b
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%namespace file="functions.html" import="*"/>
            <%namespace file="func2.html" import="a, b"/>
            ${foo()}
            ${bar()}
            ${lala()}
            ${a()}
            ${b()}
            ${x}
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render bar this is bar x this is x N/A this is foo this is bar this is lala this is a this is b this is x N/A test_import_calledfromdef N/A N/A self N/A N/A N/A l N/A N/A lookup TemplateLookup N/A N/A N/A l put_string a 
        <%def name="table()">
            im table
        </%def>
         N/A N/A N/A l put_string b 
        <%namespace file="a" import="table"/>

        <%
            def table2():
                table()
                return ""
        %>

        ${table2()}
         N/A t N/A N/A l get_template b N/A N/A N/A flatten_result N/A N/A t render im table N/A test_closure_import N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string functions.html 
            <%def name="foo()">
                this is foo
            </%def>
 
            <%def name="bar()">
                this is bar
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%namespace file="functions.html" import="*"/>
            <%def name="cl1()">
                ${foo()}
            </%def>
 
            <%def name="cl2()">
                ${bar()}
            </%def>
 
            ${cl1()}
            ${cl2()}
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render bar this is bar x this is x N/A this is foo this is bar N/A test_import_local N/A N/A self N/A N/A N/A t N/A Template 
            <%namespace import="*">
                <%def name="foo()">
                    this is foo
                </%def>
            </%namespace>
 
            ${foo()}
 
         N/A N/A N/A flatten_result N/A N/A t render this is foo N/A test_ccall_import N/A N/A self N/A N/A N/A collection N/A N/A lookup TemplateLookup N/A N/A N/A collection put_string functions.html 
            <%def name="foo()">
                this is foo
            </%def>
 
            <%def name="bar()">
                this is bar.
                ${caller.body()}
                ${caller.lala()}
            </%def>
         N/A N/A N/A collection put_string index.html 
            <%namespace name="func" file="functions.html" import="*"/>
            <%call expr="bar()">
                this is index embedded
                foo is ${foo()}
                <%def name="lala()">
                     this is lala ${foo()}
                </%def>
            </%call>
         N/A N/A N/A result_lines N/A N/A N/A N/A collection get_template index.html render N/A this is bar. this is index embedded foo is this is foo this is lala this is foo N/A N/A