#3624: Syndication could be friendlier to non Django templating languages
---------------------------+------------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  jacob        
  Status:  new             |   Component:  Uncategorized
 Version:  0.95            |    Keywords:               
   Stage:  Unreviewed      |   Has_patch:  0            
---------------------------+------------------------------------------------
 To specify the title or description for a feed, the syndication module
 will accept a path to a template:
 
 "You can also change the names of these two templates by specifying
 title_template and description_template as attributes of your Feed class."
 http://www.djangoproject.com/documentation/syndication/
 
 This makes it a little unfriendly to non Django templating languages since
 it will use the loader defined in Django. It would be nice if it took a
 template object and rendered that, as opposed to using a string, using the
 default Django loader and rendering the template. This would allow me to
 easily use my templating language in my feed module, without interfering
 with the underlying module.
 
 Django-0.95.1
 
 contrib/syndication/feeds.py:
 
         try:
             description_tmp =
 loader.get_template(self.description_template_name)
         except TemplateDoesNotExist:
             description_tmp = Template('{{ obj }}')

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3624>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to