$def with (page) $ _x = ctx.setdefault('cssfile', 'edit') $var title: $_("Edit %(title)s", title=page.key) $:render_template("lib/edit_head", page)
$:macros.TypeChanger(page.type)
$if page.key.endswith(".css"): $ ctype = "text/css" $elif page.key.endswith(".js"): $ ctype = "text/javascript" $elif page.key.endswith(".html"): $ ctype = "text/html" $else: $ ctype = "text/plain"
$:macros.EditButtonsMacros(comment=page.comment_)