Quite simply I'd like to print out all variables that are in scope in my genshi template, as a debugging and discovery measure. Is there a way to do it?
相关问题
- What is the method of doing nl2br in Genshi?
- How to initialize global variables in TurboGears 2
- Genshi - how to print out all variables in scope
- Why single textarea mess all following xhtml?
- Why is __init__ not called after __new__ SOMETIMES
相关文章
- What is the method of doing nl2br in Genshi?
- How to initialize global variables in TurboGears 2
- Genshi - how to print out all variables in scope
- Why single textarea mess all following xhtml?
- Why is __init__ not called after __new__ SOMETIMES
- Insert javascript at top of including file in Jinj
The standard Python function locals() (which returns a dict) works for me. I'm using Genshi 0.5.1, and as you'll see, everything seems to be in
__data__
.