5 ms·
That's a well trodden path in most languages. A cursory search surfaced this library that looks like it would probably do the job: https://github.com/scriban/s
by aidos 4y ago
That's a well trodden path in most languages. A cursory search surfaced this library that looks like it would probably do the job:
https://github.com/scriban/scriban https://github.com/scriban/scriban
- wvenable 4y agoA programming language referencing a template language library for processing a markup language to generate another markup language (PDF) sounds just about right.
- aidos 4y agoNitpick but it’s a stretch to classify PDF as a markup language. They’re a graph of nodes that can encapsulate myriad different types of data including things that are probably even turing complete like fonts. Even the graphics streams inside PDFs aren’t markup. We build abstractions for a reason. I think we can all agree that templating markup for layouts has been a reasonable success story of the web generation.