kukkubukku/templates/recipe.fragment.templ
2022-03-31 21:00:39 +02:00

24 lines
449 B
Text

<h1>{{ print "$name" }}</h1>
<ul>
{{ for t in $tags; do }}
<li>{{ print "$t" }}</li>
{{ done }}
</ul>
<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>