I've figured it out, this is the way:
from gluon.template import render
Sorry to bother :P
El martes, 15 de marzo de 2016, 7:34:28 (UTC-3), Lisandro escribió:
>
> I have an html file template, and I would like to render it with some
> variables.
> Normally I would do somethink like this:
>
> response.render('path/to/template.html', dict=(var1='value1', var2=
> 'value2'))
>
> *However, I need to do it from scheduler environment, so there is no
> response object present*.
> Is there a way to use the render functionality without having the response
> object?
>
> Thanks in advance!
>
--
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.