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

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Feb 15, 2009

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

This comment has been minimized.

sqlalchemy-bot commented Feb 26, 2009

Michael Bayer (@zzzeek) wrote:

its just a lexer bug, fixed in 4af83ba.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 26, 2009

Changes by Michael Bayer (@zzzeek):

  • removed labels: documentation
  • added labels: lexer
  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 26, 2009

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment