show location for render errors

This commit is contained in:
pantor
2020-06-27 17:05:56 +02:00
parent 0398edd419
commit d25a4de54f
14 changed files with 334 additions and 279 deletions
+2 -1
View File
@@ -7,5 +7,6 @@
],
"views": 123,
"title": "Inja works.",
"content": "Inja is the best and fastest template engine for C++. Period."
"content": "Inja is the best and fastest template engine for C++. Period.",
"footer-text": "This is the footer."
}
+6
View File
@@ -0,0 +1,6 @@
<footer>
<div>
<h3>About</h3>
<p>{{ footer-text }}</p>
</div>
</footer>
+3
View File
@@ -0,0 +1,3 @@
<head>
<title>{{ title }}</title>
</head>
+7
View File
@@ -15,5 +15,12 @@
<li>test</li>
<li>templates</li>
</ul>
<footer>
<div>
<h3>About</h3>
<p>This is the footer.</p>
</div>
</footer>
</body>
</html>
+3 -3
View File
@@ -1,8 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
</head>
{% include "header.txt" %}
<body>
<h1>{{ title }}</h1>
<small>Written by {{ author }}</small>
@@ -16,5 +14,7 @@
<li>{{ tag }}</li>
## endfor
</ul>
{% include "footer.txt" %}
</body>
</html>