From: Daniel G. <dgo...@eh...> - 2012-12-14 04:36:22
|
Thanks. FWIW (nothing?), it's going OK. For the book, there are sections that get inserted several places. I want to maintain just one copy of repeated sections. I originally defined the sections as CPP macros. That worked, but two problems: 1) No output line breaks, and lines can end up hundreds of columns long, almost awkward to look at. 2) Requires \ line continuation characters in cpp file, another bother to maintain. A few months ago, I moved to putting the sections in a separate file with markers, and using sed / bash to insert them at the proper spot. It worked, and was interesting to set up, but two problems: 1) Slow. Once there were many sections, it took > 5 seconds each time I generated book. I generate it a lot as I make changes. 2) Have to maintain custom code. Today, in a few minutes, I switched to using htp with <block> and <use> to insert the segments. It works perfectly. Basically instantaneous. Daniel Daniel Ajoy wrote: > > On Tue, 04 Dec 2012 16:54:51 -0500, Daniel Goldman <dgo...@eh...> > wrote: > >> Any advice about html pre-processor alternatives? > > htp is the one I keep using. > > Daniel > |