kukkubukku/templates/recipe.fragment.templ

25 lines
449 B
Text
Raw Permalink Normal View History

2022-03-30 20:43:32 +00:00
<h1>{{ print "$name" }}</h1>
2022-03-31 19:00:39 +00:00
<ul>
{{ for t in $tags; do }}
<li>{{ print "$t" }}</li>
{{ done }}
</ul>
2022-03-30 20:43:32 +00:00
<p>
from <a href="/profile?id={{ print "$uid" }}">{{ print "$author" }}</a>
</p>
<table>
{{ for i in $(seq $nrIngredients); do }}
<tr>
<td>
{{ echo "$qts" | tail -n +$i | head -n 1 }}
</td>
<td>
{{ echo "$ingredients" | tail -n +$i | head -n 1 }}
</td>
</tr>
{{ done }}
</table>
<p>
{{ print "$description" }}
</p>