Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sqlalchemy-bot opened this issue Feb 15, 2009 · 3 comments
Closed

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

sqlalchemy-bot opened this issue Feb 15, 2009 · 3 comments
Labels
bug Something isn't working lexer low priority

Comments

@sqlalchemy-bot
Copy link

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

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

its just a lexer bug, fixed in 4af83ba.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • removed labels: documentation
  • added labels: lexer
  • changed status to closed

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed title from "sensitivity of def definition to spaces undocument" to "can't put spaces around the = sign in <%def> tag"

@sqlalchemy-bot sqlalchemy-bot added bug Something isn't working low priority lexer labels Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lexer low priority
Projects
None yet
Development

No branches or pull requests

1 participant