<p dir="ltr">I used to use awk and perl for this kind of thing, and it's worth mentioning that server side includes (SSI) do this. </p>
<p dir="ltr">These days, though, I'd use jinja2 or another templating library. I have successfully used jinja2 to generate text other than HTML, including MS rich text format documents and LaTeX documents. </p>
<p dir="ltr">Using m4 is fun for historical reasons. The configuration of sendmail was done by generating the config files from m4 sources. The configure script that autoconf makes is also generated using m4, I believe. </p>
<div class="gmail_quote">On Oct 10, 2015 8:02 PM, "Pete Hardie" <<a href="mailto:pete.hardie@gmail.com">pete.hardie@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">There's always awk<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 10, 2015 at 7:15 PM, DJ-Pfulio <span dir="ltr"><<a href="mailto:DJPfulio@jdpfu.com" target="_blank">DJPfulio@jdpfu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 10/10/2015 06:41 PM, Calvin Harrigan wrote:<br>
> On 10/10/2015 6:34 PM, DJ-Pfulio wrote:<br>
>> On 10/10/2015 05:14 PM, Calvin Harrigan wrote:<br>
>>> Hi all,<br>
>>> I've been looking for a tool that I can only describe as a text<br>
>>> compiler. The basic feature would be the ability to use something like<br>
>>> includes within a template file that references external files and<br>
>>> compile an output file that would be the amalgam of the text in the<br>
>>> template and the text of the referenced files. Have you come across<br>
>>> anything that does this? I've turned up at least one candidate, but was<br>
>>> hoping for some more ideas. I guess I can code/script something up, but<br>
>>> time isn't on my side. Especially if it has been done before.<br>
>>><br>
>><br>
>> If you want outputs like HTML, there are lots of templating tools -<br>
>> TemplateToolkit <a href="http://www.template-toolkit.org/" rel="noreferrer" target="_blank">http://www.template-toolkit.org/</a><br>
>><br>
>><br>
<br>
</span><span>> Thanks, I'm looking for something that does just plain text.<br>
<br>
</span>It can.<br>
<div><div>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Pete Hardie<br>--------<br>Better Living Through Bitmaps</div>
</div>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>