Instead of sanitizing (which leads to problems when adding new attributes), let's just pass in the objects:
$site
$app
$page
$doc - I'm not so sure about this one. If they really want the doc, they can do this at the top of their template:
% my $doc = $page->document
For List-type pages, we should figure something out to provide both the page and the doc. Though I suppose the doc is technically part of the page and could be easily dereferenced as my $doc = $page->document
Instead of sanitizing (which leads to problems when adding new attributes), let's just pass in the objects:
$site$app$page$doc- I'm not so sure about this one. If they really want the doc, they can do this at the top of their template:For List-type pages, we should figure something out to provide both the page and the doc. Though I suppose the doc is technically part of the page and could be easily dereferenced as
my $doc = $page->document