Skip to content

Conversation

@rossjones
Copy link
Contributor

Adds a new macro which will show the upload form without relying on any macros that are not installed because we are showing the preview by just showing the template on the page.

As a result the preview.show() macro needs to import all of the govuk components (which are not installed in the importer, but will be when showing the preview) for any govuk components.

Unfortunately, when installing this template, it will keep the block that decides to show the preview and will likely generate support questions around its presence.

This PR is just to show the result of attempting this approach to fix #63

Adds a new macro which will show the upload form without relying on any
macros that are not installed because we are showing the preview by just
showing the template on the page.

As a result the preview.show() macro needs to import all of the govuk
components (which are not installed in the importer, but will be when
showing the preview) for any govuk components.

Unfortunately, when installing this template, it will keep the block
that decides to show the preview and will likely generate support
questions around its presence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Viewing templates before creating them doesn't work

1 participant