Hi, Pradeep Kishore Gowda wrote: > Hi, > 1. I realised that I've not really checked whether the pages are > getting cached using Myghty caching. I will investigate into this > further. > 2. I'm not aware of jinja tags. Will read up on this. Any pointers?
In jinja, like in django, one can make extra tags and filters: http://wsgiarea.pocoo.org/jinja/docs/tag-dev.html http://wsgiarea.pocoo.org/jinja/docs/filter-dev.html You also might want to consider to make a pylons' specific custom loader: http://wsgiarea.pocoo.org/jinja/docs/loader-dev.html I guess a suitable place for extra tags and filters is a project's lib dir, say, jinja.py module. Then, to make the taglib visible in the project, you might want to register those tags via load_environment callable in config/environment.py. greetings, Giorgi P.S. There was a taglib for the authentic django templates enabling one to call pylons' webhelpers in the django-like style: http://code.djangoproject.com/ticket/1262 This aslo might be of interest to you. > > Regards, > Pradeep > PS:I'm aware of TurboDjango project as suggested by some in the IRC > channel. However, That option would require you to install the whole > of Django. TJ needs only the templating in the form of jinja. > > > On 9/5/06, iGL <[EMAIL PROTECTED]> wrote: > > > > Hi Pradeep, > > Nice work, thak you very much. > > I have two questions: > > > > - Maybe one should be using CachedFileSystemLoader? > > - Where could be put custom jinja tags in a pylons project? > > > > greetings, > > Giorgi > > > > > > > > > > > > -- > Home: http://btbytes.com > Heart: http://sampada.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss -~----------~----~----~----~------~----~------~--~---
