[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

RE: Web templating systems was [edlug] Global Search and Replace




I guess this could be a server side include, which would reduce the amount of repetitive code insert in the first instance, and then you'd only have to edit the insert file, like a stylesheet.

P 

-----Original Message-----
From: Ed [mailto:epo1@xxx.xxx.xxx] 
Sent: 16 March 2004 13:38
To: Peter George
Cc: lkindness@xxx.xxx.xxx; edlug@xxx.xxx.xxx
Subject: Web templating systems was [edlug] Global Search and Replace


Perhaps at this point it's worth considering a templating scheme even for static pages so that future changes just involve changing the one file and re-running make or whatever. More work than just making this edit but worth it for the next time.

Can anyone recommend a good (static web page) templating program? there seem to be lots out there.

Ed
-----Original Message-----
From: "Peter  George" <peter@xxx.xxx.xxx>
To: "Lee Kindness" <lkindness@xxx.xxx.xxx>
Date: Tue, 16 Mar 2004 12:15:00 -0000
Subject: RE: [edlug] Global Search and Replace



eep! sed, that's hardcore.

Will give it a read, thanks.

P



-----Original Message-----
From: Lee Kindness [mailto:lkindness@xxx.xxx.xxx] 
Sent: 16 March 2004 12:13
To: Peter George
Cc: edlug@xxx.xxx.xxx; Lee Kindness
Subject: [edlug] Global Search and Replace


See the sed FAQ at:

  http://www.faqs.org/faqs/editor-faq/sed/

In particular the Perl solution 4.4.1.

L.

Peter  George writes:
 > 
 > 
 > 
 > Hello, one of my awful grep/fiind/regexp/vim type questions again I'm afraid.  > 
 > I want to search every .html file in a series of nested directories, for '</body>' and replace it with the following code snippet saving all files automagically.  > 
 > Is there an easy way to do this with a shell, or should I stick to EditPad or BBEdit?  > 
 > <!-- Start of StatCounter Code -->
 > <script type="text/javascript" language="javascript">
 > <!-- 
 > var sc_project=255398; 
 > var sc_invisible=1; 
 > //-->
 > </script>
 > 
 > <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js";></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com";><img class="statcounter" src="http://c1.statcounter.com/counter.php?sc_project=255398&java=0"; alt="site stats" /></a></div></noscript>  > <!-- End of StatCounter Code -->  > </body>  > 
 > 
 > TIA
 > 
 > 
 > P
 > 
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at: http://www.edlug.org.uk/list_faq.html


-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble@morpheux.org.DONTSPAMME
homepage