mirror of
https://github.com/pantor/inja.git
synced 2026-06-24 03:24:24 +00:00
show location for render errors
This commit is contained in:
@@ -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."
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<footer>
|
||||
<div>
|
||||
<h3>About</h3>
|
||||
<p>{{ footer-text }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,3 @@
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user