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 atom(self, id): atomize_response() return render('/feeder/atom.mako', {'feed': get_feed_info(id)})