--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
Anyway. You can use any template language you like but be aware you
need to test what happens when you print a helper and what happens
when a string needs escaping. Not all template languages behave in the
same way in this regard.
You will also lose the ability to bytecode compile your app using
web2py admin. This has a measurable effects on speed.
You will also lose the ability to distribute your app without
additional dependencies. Since the template language needs to be
installed and it non-trivial to package it with the app itself.
On Jan 27, 9:51 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> I dislike django-like templating languages.
>
> I can't sit down and write a single simple django app without the need to
> make a templatetag whose whole purpose is to format the data so I can use
> djangos other broken tag models to display this data.
>
> Django has the arugment "well our designers arn't programmers so we cant
> trust them to use python in the templates". Really? Seriously? I have yet to
> come across a django developer that doesn't write his own views one way or
> another. He might hire a web designer to make a site, but he still goes in
> afterwords and hacks the design into his templating language. And even then
> that web designer has their own knowledge of django.
>
> /rant off
>
> the template language is one of the most divine gifts that web2py has given
> us.
>
> -Thadeus
>
> > On Tue, Jan 26, 2010 at 8:24 PM, Alexandre <airm...@gmail.com> wrote:
>
> >> Hi,
>
> >> I want to replace web2py's template engine with Jinja 2<http://jinja.pocoo.org/2/>,
> >> anyone has some experience doing something similar? I'm trying to assign
> >> response._caller with a custom function, but I'm not having much success, is
> >> that the right way?
>
> >> Thanks,
> >> Alexandre Rosenfeld
>
> >> Eng Comp 06 - USP São Carlos
> >> FoG -http://fog.icmc.usp.br
> >> IM Team - AIESEC
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "web2py-users" group.
> >> To post to this group, send email to web...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> web2py+un...@googlegroups.com<web2py%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/web2py?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+un...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+un...@googlegroups.com<web2py%2Bunsu...@googlegroups.com>
Since this discussion comes as the first result of "web2py jinja2" searches, there you go a simple integration:Cheers,kirpit