You can use template render

from gluon.template import render

html = "<b>{{=name}}</b> {{for x in range(10)}} Hello<br> {{pass}}"

print render(content=html, context=dict(name="Bruno"))



On Wed, Aug 29, 2012 at 1:14 PM, lucas <sjluk...@gmail.com> wrote:

> ok, that is fine for simple code execution, but what of the more complex?
> how does web2py execute all of that complex code we can embed within a
> view?  that is what i want to reproduce in my scheme.
>
> --
>
>
>
>

-- 



Reply via email to