Mercurial > piecrust2
view tests/rdrutil.py @ 1077:c53af44457b6
docs: Add some information about migrating from v2 to v3.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Feb 2018 18:37:06 -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