mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-13 05:06:19 +01:00
This rebuilds the templating so that the *content* is no longer pre-generated, only the parameters. It is up to the template (and some newly implemented helper functions) to construct the output from those. Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
23 lines
487 B
Handlebars
23 lines
487 B
Handlebars
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>{{ request_uri }}</title>
|
|
</head>
|
|
<body>
|
|
{{#unless (is-root)}}
|
|
<a href="../">Back</a>
|
|
{{/unless}}
|
|
{{#each paragraphs}}
|
|
<p>{{ markov-gen "garbage" this.index this.value }}</p>
|
|
{{/each}}
|
|
<ul>
|
|
{{#each links}}
|
|
<li>
|
|
<a href="{{ href-gen "links" this.index this.value.href_words }}/">
|
|
{{ markov-gen "titles" this.index this.value.title_words }}
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</body>
|
|
</html>
|