[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#106678: ITP: new -- A template system



* Daniel Burrows <dburrows@debian.org> [010726 19:48]:
> On Thu, Jul 26, 2001 at 05:20:51PM +0300, Baruch Even <baruch@ev-en.org> was heard to say:
> > New is a template system, especially useful in conjunction with a simple text
> > editor such as vi. The user maintains templates which may contain format
> > strings. At run time, new replaces the format strings in a template with
> > appropriate values to create a new file.
> 
>   Dumb question:
>   How does this differ from a cut-down version of sed?


I don't really know since I don't know fully how to use sed (I know how
to read the manpage though if it's a must), however the advantage of new
over sed is simplicity, all I need is to setup a template on my
home dir (or system) and forget about it, all I need now is to remember
to do: new file

I can probably do something like that with sed too, but it's a longer
setup.

Additional benefit of new is that is has various small transforms over
the parameters like lowercasing and such, it has a bit more but nothing
spectacular.

-- 
Baruch Even
http://baruch.ev-en.org/



Reply to: