Skip to content

can't put spaces around the = sign in <%def> tag #102

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

I ran into a hard to debug problem with Mako the other day. Running ipython 0.8.4, I ran the code in the attached functional_def_render.txt, and it worked. But, if I change <%def name="hi(name)"> to <%def name = "hi(name)">, rendering the template breaks, as seen in the broken_def_render.txt It would be awesome if Mako wasn't sensitive to spaces like this, but if it needs to be, it should at least be documented--and I didn't find mention of it anywhere.


Attachments: functional_def_render.txt | broken_def_render.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions