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