예제 #1
0
파일: route.py 프로젝트: nfletton/froid
def atom_feed():
    pages = util.sort_by('published', site.pages_by_destination('atom_feed', 'date', 30), True)
    response = make_response(render_template('atom.xml', pages=pages))
    response.headers['Content-Type'] = 'application/xml; charset=utf-8'
    return response
예제 #2
0
파일: route.py 프로젝트: nfletton/froid
def sitemap_feed():
    response = make_response(
        render_template('sitemap.xml',
                        pages=util.sort_by('published', site.pages(), True)))
    response.headers['Content-Type'] = 'application/xml; charset=utf-8'
    return response