Example #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)
Example #2
0
 def _show_batch(self, id, batch):
     init_reader_from_batch(id, batch)
     #return render('/reader/standalone.mako')
     return render('/examples/standalone_reader.mako')
Example #3
0
 def atom(self, id):
     atomize_response()
     return render('/feeder/atom.mako', {'feed': get_feed_info(id)})