Пример #1
0
 def render(self, template):
     template = template.lstrip('/')
     if template.endswith('atom'):
         atomize_response()
     try:
         return render('site/%s.mako' % template).strip()
     except TopLevelLookupException:
         abort(404)
Пример #2
0
 def atom(self, id):
     atomize_response()
     return render('/feeder/atom.mako', {'feed': get_feed_info(id)})