HACKER Q&A
📣 darkhorse13

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?


  👤 gitgud Accepted Answer ✓
You 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


👤 jjgreen

  #!/bin/sh
  age=20
  cat <

👤 PaulHoule
I want it bad as a plug-in for Jupyter notebooks.