Templating systems such as moustache.js are powerful tools to generate any number of file types by combining static text and data.
Typical output files could be any text file including JSON, txt, html, or LLM prompts.
Any templating system would work, but it would be nice to have IF THEN constructs, FOR EACH, and Macros to create your own.
For example, Moustache Sharp at https://github.com/jehugaleahsa/mustache-sharp.