view tests/rdrutil.py @ 1134:986ecdaa2a36

url: New `url` command to get the URL of a page from its path.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 23 Apr 2018 21:37:27 -0700
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