Skip to content

Viewing templates before creating them doesn't work #63

@simonwo

Description

@simonwo

The Prototype Kit includes a "Templates" page when run in development mode that allows the designer to create pages from templates exposed by plugins, or to view them before creating them.

In testing we observed designers using the View feature, but in our plugin viewing templates doesn't work. This is because macros defined in plugin code don't get exported to template viewing but they do in pages.

We can redefine some of our exported functions as pure macros, but not all of them due to limitations with Nunjucks. So we need to come up with some way to get functions loaded during template viewing (including possibly submitting a patch to the Prototype Kit).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions