Mercurial > piecrust2
view tests/rdrutil.py @ 1100:1ce67d2fae0a
routing: Fix URL generation bug with ugly URLs and index pages in sub-folders.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 17 Feb 2018 11:54:00 -0800 |
parents | 72f17534d58e |
children |
line wrap: on
line source
from piecrust.rendering import RenderingContext, render_page def render_simple_page(page): ctx = RenderingContext(page) rp = render_page(ctx) return rp.content