<p dir="ltr">I used to use awk and perl for this kind of thing, and it&#39;s worth mentioning that server side includes (SSI) do this. </p>
<p dir="ltr">These days, though, I&#39;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, &quot;Pete Hardie&quot; &lt;<a href="mailto:pete.hardie@gmail.com">pete.hardie@gmail.com</a>&gt; 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&#39;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">&lt;<a href="mailto:DJPfulio@jdpfu.com" target="_blank">DJPfulio@jdpfu.com</a>&gt;</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>
&gt; On 10/10/2015 6:34 PM, DJ-Pfulio wrote:<br>
&gt;&gt; On 10/10/2015 05:14 PM, Calvin Harrigan wrote:<br>
&gt;&gt;&gt; Hi all,<br>
&gt;&gt;&gt;      I&#39;ve been looking for a tool that I can only describe as a text<br>
&gt;&gt;&gt; compiler. The basic feature would be the ability to use something like<br>
&gt;&gt;&gt; includes within a template file that references external files and<br>
&gt;&gt;&gt; compile an output file that would be the amalgam of the text in the<br>
&gt;&gt;&gt; template and the text of the referenced files.  Have you come across<br>
&gt;&gt;&gt; anything that does this?  I&#39;ve turned up at least one candidate, but was<br>
&gt;&gt;&gt; hoping for some more ideas.  I guess I can code/script something up, but<br>
&gt;&gt;&gt; time isn&#39;t on my side. Especially if it has been done before.<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If you want outputs like HTML, there are lots of templating tools -<br>
&gt;&gt; TemplateToolkit <a href="http://www.template-toolkit.org/" rel="noreferrer" target="_blank">http://www.template-toolkit.org/</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</span><span>&gt; Thanks, I&#39;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>