Mercurial > piecrust2
comparison build/messages/templates/error.html @ 229:a951cd4ef361
serve: Print nested exception messages in the dev server.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 11 Feb 2015 08:27:52 -0800 |
parents | 67a1c082d89d |
children |
comparison
equal
deleted
inserted
replaced
228:8015fb40c28b | 229:a951cd4ef361 |
---|---|
1 {% extends "default.html" %} | 1 {% extends "default.html" %} |
2 | 2 |
3 {% block content %} | 3 {% block content %} |
4 {{content|safe}} | 4 {{content|safe}} |
5 | 5 |
6 {# The following is `raw` because we want it to be in the | |
7 produced page, so it can then be templated on the fly | |
8 with the error messages #} | |
6 {% raw %} | 9 {% raw %} |
7 {% if details %} | 10 {% if details %} |
8 <div class="error-details"> | 11 <div class="error-details"> |
9 {{ details|safe }} | 12 <p>Error details:</p> |
13 <ul> | |
14 {% for desc in details %} | |
15 <li>{{ desc }}</li> | |
16 {% endfor %} | |
17 </ul> | |
10 </div> | 18 </div> |
11 {% endif %} | 19 {% endif %} |
12 {% endraw %} | 20 {% endraw %} |
13 {% endblock %} | 21 {% endblock %} |
14 | 22 |