[ale] Text compiler

Jerald Sheets questy at gmail.com
Mon Oct 12 10:52:25 EDT 2015


The puppetlabs-concat module on the Forge appears to satisfy your needs
nicely.

https://forge.puppetlabs.com/puppetlabs/concat



---
Jerald M. Sheets jr.


On Sun, Oct 11, 2015 at 11:11 AM, DJ-Pfulio <DJPfulio at jdpfu.com> wrote:

> jinja2 is built-into ansible, so I've used it too.  Ansible could be
> used for this pretty easily.
>
> https://docs.ansible.com/ansible/assemble_module.html
>
>
> On 10/11/2015 10:56 AM, Ed Cashin wrote:
> > I used to use awk and perl for this kind of thing, and it's worth
> > mentioning that server side includes (SSI) do this.
> >
> > 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.
> >
> > 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.
> > On Oct 10, 2015 8:02 PM, "Pete Hardie" <pete.hardie at gmail.com> wrote:
> >
> >> There's always awk
> >>
> >>
> >> On Sat, Oct 10, 2015 at 7:15 PM, DJ-Pfulio <DJPfulio at jdpfu.com> wrote:
> >>
> >>> On 10/10/2015 06:41 PM, Calvin Harrigan wrote:
> >>>> On 10/10/2015 6:34 PM, DJ-Pfulio wrote:
> >>>>> On 10/10/2015 05:14 PM, Calvin Harrigan wrote:
> >>>>>> Hi all,
> >>>>>>      I'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'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't on my side. Especially if it has been done before.
> >>>>>>
> >>>>>
> >>>>> If you want outputs like HTML, there are lots of templating tools -
> >>>>> TemplateToolkit http://www.template-toolkit.org/
> >>>>>
> >>>>>
> >>>
> >>>> Thanks, I'm looking for something that does just plain text.
> >>>
> >>> It can.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151012/9723002e/attachment.html>


More information about the Ale mailing list