Skip to content

page arguments don't work with inherited templates #116

@sqlalchemy-bot

Description

@sqlalchemy-bot

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

i.e.:

# TEMPLATE "test.tmpl"
<%inherit file="base.tmpl" />
<%page args="variable" />
${variable}


# TEMPLATE "base.tmpl"
<%page args="bar" />
${bar}
${pageargs['foo']}

a proposed fix is:

def _kwargs_for_callable(callable_, data, **kwargs):
    data.update(kwargs)
    if 'context' in data:
        del data['context']
    return data

though I'd like to see if this can be addressed in a more fundamental way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions