Do not do it. {{include ....}} and {{extend ....}} and {{block ...}} are
not Python code. They are template language. You should not mix python code
and template languages. In come cases it works but soon or later you run
into trouble.
Instead fo
{{=XML(response.render(open('other-template'),locals()))}}
On Wednesday, 2 April 2014 10:43:56 UTC-5, Yufei Li wrote:
>
> in my view, I am writing something like
>
> {{progress=['a','b','c']}}
> {{for step in progress :}}
> {{include 'default/%s.html' % step}}
> {{pass}}
>
> It complains as
>
> NameError: name 'step' is not defined
>
> Which simply does not make sense to me, anyone can please help me on why
> and how to make it work?
>
> Thanks
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.