Mercurial > piecrust2
view tests/rdrutil.py @ 1029:41f4f8dfa42d
cm: Update Inukshuk for Python 3.4 compatibility.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 27 Dec 2017 13:25:39 -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