Skip to content

Reorganize Template Variables - Prefer Objects over Hashes #58

@preaction

Description

@preaction

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions