<?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: Simple Template Engine &#8211; your lightweight templating engine in PHP</title>
	<atom:link href="http://www.compdigitec.com/labs/2009/02/02/simple-template-engine-your-lightweight-templating-engine-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.compdigitec.com/labs/2009/02/02/simple-template-engine-your-lightweight-templating-engine-in-php/</link>
	<description>The place for interesting things</description>
	<lastBuildDate>Fri, 12 Mar 2010 21:30:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.compdigitec.com/labs/2009/02/02/simple-template-engine-your-lightweight-templating-engine-in-php/comment-page-1/#comment-452</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 07 Mar 2009 09:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=69#comment-452</guid>
		<description>@andrew:

Where you would use:

&lt;?php
$s = 5 + 46;
echo &quot;Test is &quot; . strval($s);
?&gt;

You would use:

(template code)
Test is %number%

(php code)
&lt;?php
include(&quot;tpl.class.php&quot;);

$s = 5 + 46;

$tpl = new template();
$tpl-&gt;assign(Array(&#039;number&#039;=&gt;strval($s)));
$tpl-&gt;display(&#039;template.tpl&#039;);

?&gt;</description>
		<content:encoded><![CDATA[<p>@andrew:</p>
<p>Where you would use:</p>
<p>< ?php<br />
$s = 5 + 46;<br />
echo "Test is " . strval($s);<br />
?></p>
<p>You would use:</p>
<p>(template code)<br />
Test is %number%</p>
<p>(php code)<br />
< ?php<br />
include("tpl.class.php");</p>
<p>$s = 5 + 46;</p>
<p>$tpl = new template();<br />
$tpl->assign(Array(&#8216;number&#8217;=>strval($s)));<br />
$tpl->display(&#8216;template.tpl&#8217;);</p>
<p>?></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://www.compdigitec.com/labs/2009/02/02/simple-template-engine-your-lightweight-templating-engine-in-php/comment-page-1/#comment-418</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 04 Mar 2009 12:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=69#comment-418</guid>
		<description>Hi!
Very nice template system ;)

I wonder how can I use php code in the template file? Is it possible?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Very nice template system <img src='http://www.compdigitec.com/labs/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I wonder how can I use php code in the template file? Is it possible?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
