5 ms·
Ask HN: Simple docs maker that supports variables?
Something along these lines:
- age = 20
- My age is {{ age }}.
- The output would be "My age is 20."
I'm looking for a tool that does stuff like this, and maybe some simple calculations. I recall someone posting a link on a thread before, but I can't seem to find it. Any recommendations?
- jjgreen 6y ago#!/bin/sh age=20 cat <<EOF my age is ${age} EOF
- PaulHoule 6y agoI want it bad as a plug-in for Jupyter notebooks.
- gitgud 6y agoYou could use [1] pug, which is a simple templating library. A raw pug file could contain variables and calculations, which resolve to HTML when compiled [1] https://pugjs.org/api/getting-started.html https://pugjs.org/api/getting-started.html