<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Making Websites Without Serverside Scripting</title>
	<link>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Thu, 20 Nov 2008 10:12:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9103</link>
		<pubDate>Tue, 20 May 2008 14:12:06 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9103</guid>
					<description>&lt;strong&gt;@Tino&lt;/strong&gt; - thanks for bringing up m4 Tino! I never used it, but it does seem like a more "accessible" way of doing this stuff. Then again, maintenance seems like a pain in the ass due to the fact you need to "re-compile" the thing. It's an interesting alternative.

&lt;strong&gt;@Gamberoni&lt;/strong&gt; - well, I wasn't really interested in menus. I wanted to have a page template with a header (with all the css, and javascript links), footer and a sidebar that would be in one place where they could be edited easily. In most server side languages you can do something like this when you create a new page:

&lt;pre lang="php"&gt;&lt;?php include "header.php"; ?&gt;
&lt;?php include "sidebar.php";?&gt;
&lt;!-- your content goes here
&lt;?php include "footer.php" ?&gt;&lt;/pre&gt;

I wanted something like that - to be able to import these static documents all over the place. If you don't do this the maintenance becomes a nightmare since you have to copy and paste your stuff all over. Then when something changes you have to go back and edit every single file.</description>
		<content:encoded><![CDATA[<p><strong>@Tino</strong> - thanks for bringing up m4 Tino! I never used it, but it does seem like a more &#8220;accessible&#8221; way of doing this stuff. Then again, maintenance seems like a pain in the ass due to the fact you need to &#8220;re-compile&#8221; the thing. It&#8217;s an interesting alternative.</p>
<p><strong>@Gamberoni</strong> - well, I wasn&#8217;t really interested in menus. I wanted to have a page template with a header (with all the css, and javascript links), footer and a sidebar that would be in one place where they could be edited easily. In most server side languages you can do something like this when you create a new page:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #ff0000;">&quot;header.php&quot;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #ff0000;">&quot;sidebar.php&quot;</span>;?&gt;
&lt;!-- your content goes here
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #ff0000;">&quot;footer.php&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>I wanted something like that - to be able to import these static documents all over the place. If you don&#8217;t do this the maintenance becomes a nightmare since you have to copy and paste your stuff all over. Then when something changes you have to go back and edit every single file.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Gamberoni</title>
		<link>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9100</link>
		<pubDate>Tue, 20 May 2008 13:16:31 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9100</guid>
					<description>Have you looked at what Steve Gibson has done with just css?  Try http://www.grc.com/menudemo.htm -- I think this is close to what you were trying to achieve?</description>
		<content:encoded><![CDATA[<p>Have you looked at what Steve Gibson has done with just css?  Try <a href="http://www.grc.com/menudemo.htm" rel="nofollow">http://www.grc.com/menudemo.htm</a> &#8212; I think this is close to what you were trying to achieve?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tino</title>
		<link>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9099</link>
		<pubDate>Tue, 20 May 2008 11:58:14 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/05/19/making-websites-without-serverside-scripting/#comment-9099</guid>
					<description>I have been in a similar situation, where I did not dare to rely on a working php install when setting up a website. Since I am not a big fan of javascript my solution was quite different.

I created a number of m4 macros and had html/m4 source files that relied on the macros for navigation menus, header, footer etc. People who used the system needed to remember to run 'make' every time they changed the source files to generate the static html files.

Some people would probably say its better to go all XML and xsl transforms for something like this. Then one can generate nice print-formatted content from the same source files etc. But that just seemed a bit too overpowered for the simple things I was doing.</description>
		<content:encoded><![CDATA[<p>I have been in a similar situation, where I did not dare to rely on a working php install when setting up a website. Since I am not a big fan of javascript my solution was quite different.</p>
<p>I created a number of m4 macros and had html/m4 source files that relied on the macros for navigation menus, header, footer etc. People who used the system needed to remember to run &#8216;make&#8217; every time they changed the source files to generate the static html files.</p>
<p>Some people would probably say its better to go all XML and xsl transforms for something like this. Then one can generate nice print-formatted content from the same source files etc. But that just seemed a bit too overpowered for the simple things I was doing.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.521 seconds -->
