from gluon.template import render print render("hello {{=data}}",context=dict(data="world")) help(render) # for more info
Notice that gluon/template.py is a single file with no dependencies. On Wednesday, 24 July 2013 15:45:34 UTC+2, Eduardo Cruz wrote: > > Hello, I want to use the templating engine as a module so I can use it > with weasyprint as a barebones reporting engine, with mako I can do: > > from mako.template import Template > print Template("hello ${data}!").render(data="world") > > > How could I do that in the web2py templating engine? > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.