Skip to content

"caller" should not be defined for a regular def call even if youre nested in a <%call>'ed def #28

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Michael Bayer (@zzzeek)

easier to illustrate:

<%def name="a()">
%	if caller:
${ caller.body() }\
%	endif
AAA
${ b() }
</%def>

<%def name="b()">
%	if caller:
${ caller.body() }\
%	endif
BBB
${ c() }
</%def>

<%def name="c()">
%	if caller:
${ caller.body() }\
%	endif
CCC
</%def>

<%call expr="a()">
CALL
</%call>

result:

CALL AAA CALL BBB CALL CCC

should be:

CALL AAA BBB CCC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions