Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But then you need a template language to generate the markup from the data.


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


A programming language referencing a template language library for processing a markup language to generate another markup language (PDF) sounds just about right.


Nitpick 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: