Skip to content

<%namespace:defname> converts the method name to lowercase #108

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

This raises a problem when the defname contains uppercase letters as the closing tag won't match the opening tag meaning you have to fall back to using call to call the method.

=== Example ===

<%def name="renderPanel(panel)">
    <div class="x-panel">
        <h1 class="x-panel-title">${panel.title}</h1>
        <div class="x-panel-content">
        </div>
    </div>
</%def>

<%def name="renderTablePanel(panel)">
    <%self:renderPanel panel="${panel}">
        ${self.renderTable(panel.table)}
    </%self>
</%def>

=== Error ===
SyntaxException: Closing tag does not match tag: <%self:renderpanel> in file 'panels.mao' at line: 46 char: 2


Attachments: fix-namespacedef.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions