<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Manage your template/layout easier</title>
	<atom:link href="http://matt-shaffer.com/blog/2009/02/06/manage-your-templatelayout-easier/feed/" rel="self" type="application/rss+xml" />
	<link>http://matt-shaffer.com/blog/2009/02/06/manage-your-templatelayout-easier/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 09:28:49 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cr1</title>
		<link>http://matt-shaffer.com/blog/2009/02/06/manage-your-templatelayout-easier/comment-page-1/#comment-16</link>
		<dc:creator>cr1</dc:creator>
		<pubDate>Thu, 12 Feb 2009 18:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://matt-shaffer.com/?p=104#comment-16</guid>
		<description>Hmm... seems like the comments filter blocked off some of my stuff. 

What I meant was: 

Implementation: 
//Page start
gen(1);
echo &quot;some page content&quot;;
gen(2);
//Page end</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; seems like the comments filter blocked off some of my stuff. </p>
<p>What I meant was: </p>
<p>Implementation:<br />
//Page start<br />
gen(1);<br />
echo &#8220;some page content&#8221;;<br />
gen(2);<br />
//Page end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crazy</title>
		<link>http://matt-shaffer.com/blog/2009/02/06/manage-your-templatelayout-easier/comment-page-1/#comment-15</link>
		<dc:creator>crazy</dc:creator>
		<pubDate>Thu, 12 Feb 2009 14:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://matt-shaffer.com/?p=104#comment-15</guid>
		<description>I also use that... except that to make it easier for me to remember the function names (and for consistency issues), I use the same function with one parameter. 

Example: 
function gen ($number)
{
  switch ($number)
  {
  case 1 :
    echo &quot;stuff... mostly headers and meta tags&quot;;
    break;
  case 2 :
    echo &quot;some more stuff...&quot;
    break;
  }
}

Implementation: 


One of the cons is that this method has less flexibility, since it seems like the page content is &quot;locked&quot; inside &quot;editable regions&quot; in the template defined in gen() function. 

By the way congrats for the Java version of KoL ;)</description>
		<content:encoded><![CDATA[<p>I also use that&#8230; except that to make it easier for me to remember the function names (and for consistency issues), I use the same function with one parameter. </p>
<p>Example:<br />
function gen ($number)<br />
{<br />
  switch ($number)<br />
  {<br />
  case 1 :<br />
    echo &#8220;stuff&#8230; mostly headers and meta tags&#8221;;<br />
    break;<br />
  case 2 :<br />
    echo &#8220;some more stuff&#8230;&#8221;<br />
    break;<br />
  }<br />
}</p>
<p>Implementation: </p>
<p>One of the cons is that this method has less flexibility, since it seems like the page content is &#8220;locked&#8221; inside &#8220;editable regions&#8221; in the template defined in gen() function. </p>
<p>By the way congrats for the Java version of KoL <img src='http://matt-shaffer.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
