Skip to content

Commit

Permalink
Make the preview app template examples more realistic
Browse files Browse the repository at this point in the history
Add basic page content and initialise JavaScript for components so that the pages can be used for tests.
  • Loading branch information
hannalaakso committed Nov 29, 2021
1 parent b06231f commit 2a50452
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/examples/template-custom/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@
{% block bodyEnd %}
<!-- block:bodyEnd -->
<script src="/public/all.js"></script>
<script>window.GOVUKFrontend.initAll()</script>
<!-- endblock:bodyEnd -->
{% endblock %}
8 changes: 8 additions & 0 deletions app/views/examples/template-default/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<![endif]-->
{% endblock %}

{% block content %}
<!-- block:content -->
<h1 class="govuk-heading-xl">Default page template</h1>
<!-- endblock:content -->
{% endblock %}


{% block bodyEnd %}
<script src="/public/all.js"></script>
<script>window.GOVUKFrontend.initAll()</script>
{% endblock %}

0 comments on commit 2a50452

Please sign in to comment.