Yes you need to pass a string in this way:
{{include "page.html"}}
Il 24/06/15 08:43, Dmitry Ermolaev ha scritto:
> |
> {{if 'page' in globals():}}
> {{include page}}
> {{else:}}
> {{=list}}
> {{pass}}
>
> |
> erro -
> File "C:\web2py-m\gluon\template.py", line 684, in parse
> self.include(top, value)
> File "C:\web2py-m\gluon\template.py", line 462, in include
> text = self._get_file_text(filename)
> File "C:\web2py-m\gluon\template.py", line 439, in _get_file_text
> filename = eval(filename, context)
> File "<string>", line 1, in <module>
> NameError: name 'page' is not defined
>
> --
> 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]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.
--
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.