Post #3745101
2026-07-06 13:37 UTC
Presenting the HTML templating system you didn't know you already had:
```sh
#!/bin/sh
cat<<EOF
<html>
<body>
<b>Let's count!</b>
<ol>
$(for x in $(seq 10); do
echo "<li>$x</li>"
done)
</ol>
</body>
</html>
```
Replies (1)
-
@amonakov@mastodon.gamedev.place 2026-07-06 18:08
@mid_kid@fosstodon.org printf in shell iterates its argument list :) printf '%d\n' $(seq 10)