Re: [Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-12 Thread Rogan Creswick
On Mon, May 9, 2011 at 8:25 AM, Rogan Creswick cresw...@gmail.com wrote: Indeed :)  The tag syntax is controlled by two command-line flags: --prefix=... and --suffix=... It can be difficult to get the desired strings past both the shell and the regular expression compiler (although that last

Re: [Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-09 Thread Vo Minh Thu
2011/5/9 bri...@aracnet.com: On Sun, 8 May 2011 16:23:59 -0700 Rogan Creswick cresw...@gmail.com wrote: Newt scans the input (either a file, directory or stdin) for tags marked with tagName [1], then replaces those entries with values specified on the command line, producing either a new

Re: [Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-09 Thread Rogan Creswick
On Sun, May 8, 2011 at 10:38 PM, bri...@aracnet.com wrote: This is a useful tool ! I'm glad you think so too! I would like to suggest allowing customization of the syntax to indicate a tag, e.g. {# #} instead of (You just knew someone was going to say that, right ? :-) Indeed :) The

[Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-08 Thread Rogan Creswick
I'm happy to announce Newt: a trivial tool for creating boilerplate. I frequently need to create projects with slight customizations -- I have a particular layout for cabal projects, and make files for LaTeX papers, etc... However, there are often fields that need to be updated in many places.

Re: [Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-08 Thread briand
On Sun, 8 May 2011 16:23:59 -0700 Rogan Creswick cresw...@gmail.com wrote: Newt scans the input (either a file, directory or stdin) for tags marked with tagName [1], then replaces those entries with values specified on the command line, producing either a new file, modifying the input