<p dir="ltr">I might be misunderstanding your requirements but I believe you could just use gcc or your favorite c compiler and use the preprocessor flag on your text files. The preprocessor should be able to work on any file that has #include or #define, not just .c or .h files. </p>
<div class="gmail_quote">On Oct 10, 2015 5:34 PM, &quot;James Sumners&quot; &lt;<a href="mailto:james.sumners@gmail.com">james.sumners@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">You could use a &quot;static site generator&quot; to do it. They are numerous. <a href="http://www.metalsmith.io/" target="_blank">http://www.metalsmith.io/</a> may be more than what you want, but is very high on my list of candidates for when I dump Wordpress.<div><br></div><div>Or, just use Markdown via Pandoc (<a href="http://pandoc.org/" target="_blank">http://pandoc.org/</a>).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 10, 2015 at 5:14 PM, Calvin Harrigan <span dir="ltr">&lt;<a href="mailto:calvin.harrigan@gmail.com" target="_blank">calvin.harrigan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
    I&#39;ve been looking for a tool that I can only describe as a text compiler. The basic feature would be the ability to use something like includes within a template file that references external files and compile an output file that would be the amalgam of the text in the template and the text of the referenced files.  Have you come across anything that does this?  I&#39;ve turned up at least one candidate, but was hoping for some more ideas.  I guess I can code/script something up, but time isn&#39;t on my side. Especially if it has been done before.<br>
<br>
Thanks<br>
_______________________________________________<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>James Sumners<br><a href="http://james.sumners.info/" target="_blank">http://james.sumners.info/</a> (technical profile)</div><div><a href="http://jrfom.com/" target="_blank">http://jrfom.com/</a> (personal site)</div><div><a href="http://haplo.bandcamp.com/" target="_blank">http://haplo.bandcamp.com/</a> (band page)</div></div></div></div></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>