Re: [Templates] Chomping without joining lines
[prev]
[thread]
[next]
[Date index for 2004/12/15]
On Dec 15, 2004, at 1:11 PM, Len Weisberg wrote:
> I am using TT2 for generating Apache configuration files. (This is
> done
> offline, ie before running Apache, not under mod_perl.)
> I can't figure out a simple way to use any of TT2's flavors of chomp in
>
I do the same using tpage:
tpage httpd.conf.tt > httpd.conf
no special settings of any sort. who cares about extra blank lines in
the generated file? only the computer will ever read that. judicious
use of [%- -%] takes care of the places where it might be important.
most of the config file is repeated calls to a macro that generates the
necessary config lines for various co-branded sites for a service we
sell.
Vivek Khera, Ph.D.
+1-301-869-4449 x806
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] Chomping without joining lines
Vivek Khera 18:27 on 15 Dec 2004
|