controllers/default.py

from tenjin import *
from tenjin.helpers import *
engine = tenjin.Engine(path=['views'])

def index():
    context = dict(form=SQLFORM(db.table))
    return engine.render('page.pyhtml', context)

That should works!

http://www.kuwata-lab.com/tenjin/pytenjin-users-guide.html#render-template


On Wed, Jul 18, 2012 at 8:29 PM, Francisco Costa <[email protected]>wrote:

> I was reading about python templates engines and found about *tenjin* -
> http://www.kuwata-lab.com/tenjin
>
> Its seams that the main feature is speed as you can see in these
> benchmarks:
> http://www.kuwata-lab.com/tenjin/pytenjin-users-guide.html#benchmark
>
> Is it possible to use the tenjin template engine in web2py?
>
> --
>
>
>
>

-- 



Reply via email to