Re: [web2py] tenjin template engine and web2py

2012-07-18 Thread Bruno Rocha
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#

[web2py] tenjin template engine and web2py

2012-07-18 Thread Francisco Costa
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 e