Hacker News new | ask | show | jobs
by chatmasta 2820 days ago
Cool! I built something very similar in Python for a client project, for filling docx forms from a JSON key-value. My approach was a bit different. In order to preserve formatting, I did not want to put the templating language in the document itself. So I used commenting functionality. The user highlights the region to insert text, and puts the templating logic in the comment. Interesting to see another implementation! Thanks