def render_htmls(f): for file in f: if is_html(file['name']): print '\n#', file['url'] context = compile_context() rendered = render_url(file['url'], context) write_file(file['url'], rendered)
def server_css(url): if is_index(url): return redirect(url + 'index.html') if is_static_url(url): return static_file(url, ROOT) if url.endswith('.html'): return render_url(request.path, {'dev': True}) return "FAIL"
def update_url(url): rendered = render_url(url) write_file(url, rendered)