$overlay{_template.html#body} $begin{content}

A few additional site-specific template callables are collected in a simple module, gzdemo.skin_custom (source shown below). These are made added to the template evaluation globals at the time the SitePublisher is initialized (see ${html.href("/", "Python source : demo site SitePublisher and SiteDirectory")}).

For more information on the templating used by Gizmo(QP), see the ${html.href("http://evoque.gizmojo.org", "Evoque web site")}.

Template evaluation context

The Evoque callable inspect() gives an overview of the evaluation context for a given template that includes the globals and locals namespaces as well as any expression to be evaluated. If we run it for this page, and with output=True to include output in the response (as opposed to log it) we get the following:

${site.CCode("inspect", contents=[inspect(output=True)], title="inspect(output=True)" )}
${site.ViewSrc('py', 'skin_custom.qpy#code', collection='demo', title='Python source : additional custom template callables', )}
${site.ViewSrc('gt_site', '_template.html#body', title='Template source : site page template, used by every page', )}
$end{content}