<?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: PHP 需要樣版引擎嗎？</title>
	<atom:link href="http://mk.netgenes.org/archives/501/feed/" rel="self" type="application/rss+xml" />
	<link>http://mk.netgenes.org/archives/501/</link>
	<description>Statcounter 和 Feedburner 是用來提醒我這裡有多荒涼的</description>
	<lastBuildDate>Mon, 23 Jan 2012 15:38:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mk</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8865</link>
		<dc:creator>mk</dc:creator>
		<pubDate>Sat, 10 Feb 2007 16:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8865</guid>
		<description>Dolittle:
你是指 php -r 嗎？的確不用在參數裏輸入 &lt;?php ?&gt;。不過要是程式碼在檔案裏... 我知道是可以，但挺麻煩呢，足以證明 PHP 設計者沒這種打算。
&lt;br /&gt;
如果你不是指那個參數，我想你大概誤會了我的意思。</description>
		<content:encoded><![CDATA[<p>Dolittle:<br />
你是指 php -r 嗎？的確不用在參數裏輸入 &lt;?php ?&gt;。不過要是程式碼在檔案裏&#8230; 我知道是可以，但挺麻煩呢，足以證明 PHP 設計者沒這種打算。<br />
<br />
如果你不是指那個參數，我想你大概誤會了我的意思。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dolittle</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8864</link>
		<dc:creator>Dolittle</dc:creator>
		<pubDate>Sat, 10 Feb 2007 16:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8864</guid>
		<description>Dear mk,
「我說如果 PHP 有一種跟 Perl/Ruby 等等腳本語言一樣的格式，只有純粹程式碼的 script，那麼一堆「PHP 需不需要樣版引擎」的討論即可自動終結。」

你這邊所說得「格式」，PHP 應該有支援的才是
Like &lt;a href=&quot;http://us2.php.net/features.commandline&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; ?</description>
		<content:encoded><![CDATA[<p>Dear mk,<br />
「我說如果 PHP 有一種跟 Perl/Ruby 等等腳本語言一樣的格式，只有純粹程式碼的 script，那麼一堆「PHP 需不需要樣版引擎」的討論即可自動終結。」</p>
<p>你這邊所說得「格式」，PHP 應該有支援的才是<br />
Like <a href="http://us2.php.net/features.commandline" rel="nofollow">this</a> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mk</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8860</link>
		<dc:creator>mk</dc:creator>
		<pubDate>Sat, 10 Feb 2007 05:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8860</guid>
		<description>Dolittle:
不是，我說 PHP 從開始便被設計成 template 的模樣，因為它擁有像 template 的語法，即靜態內容跟動態的程式碼寫在同一個檔案裏，以 &lt;?php / ?&gt; 分隔開，基本上就如眾多樣版引擎的 { } 一樣，只不過累贅一點。我說如果 PHP 有一種跟 Perl/Ruby 等等腳本語言一樣的格式，只有純粹程式碼的 script，那麼一堆「PHP 需不需要樣版引擎」的討論即可自動終結。
&lt;br /&gt;
當然我沒否認樣版引擎為 PHP 帶來的好處，包括大型專案分工，邏輯分離，程式碼簡化等等。但是覺得我那個不可能實現的夢想，配合一堆由使用者設計，語法更簡單的樣版引擎，真的找不到任何可以挑剔的地方。</description>
		<content:encoded><![CDATA[<p>Dolittle:<br />
不是，我說 PHP 從開始便被設計成 template 的模樣，因為它擁有像 template 的語法，即靜態內容跟動態的程式碼寫在同一個檔案裏，以 &lt;?php / ?&gt; 分隔開，基本上就如眾多樣版引擎的 { } 一樣，只不過累贅一點。我說如果 PHP 有一種跟 Perl/Ruby 等等腳本語言一樣的格式，只有純粹程式碼的 script，那麼一堆「PHP 需不需要樣版引擎」的討論即可自動終結。<br />
<br />
當然我沒否認樣版引擎為 PHP 帶來的好處，包括大型專案分工，邏輯分離，程式碼簡化等等。但是覺得我那個不可能實現的夢想，配合一堆由使用者設計，語法更簡單的樣版引擎，真的找不到任何可以挑剔的地方。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dolittle</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8859</link>
		<dc:creator>Dolittle</dc:creator>
		<pubDate>Sat, 10 Feb 2007 04:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8859</guid>
		<description>另外我覺得這篇主題探討的方向跟一般使用 Template Engine 的方向有些不同
一般 PHP 初學者大概不太會去碰觸到 Template，除非他之前有經驗
開始想用 Template 大多都是想將程式跟 HTML 分離
而 Template Engine 大多都有提供 cache 的機制
以大型專案來說，在規劃良來好下來使用 Template 一定有著相當的好處
執行速度提昇，維護方便等等</description>
		<content:encoded><![CDATA[<p>另外我覺得這篇主題探討的方向跟一般使用 Template Engine 的方向有些不同<br />
一般 PHP 初學者大概不太會去碰觸到 Template，除非他之前有經驗<br />
開始想用 Template 大多都是想將程式跟 HTML 分離<br />
而 Template Engine 大多都有提供 cache 的機制<br />
以大型專案來說，在規劃良來好下來使用 Template 一定有著相當的好處<br />
執行速度提昇，維護方便等等</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dolittle</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8858</link>
		<dc:creator>Dolittle</dc:creator>
		<pubDate>Sat, 10 Feb 2007 04:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8858</guid>
		<description>純程式碼？
你指的是不支援 HTML 的 PHP 嗎？
其實 PHP 早在 4.0 就有 CLI (Command Line Interface)
而 PHP 本來就是 Script，可以直接在 Linux 下執行
就像是 Perl or Shell 那樣</description>
		<content:encoded><![CDATA[<p>純程式碼？<br />
你指的是不支援 HTML 的 PHP 嗎？<br />
其實 PHP 早在 4.0 就有 CLI (Command Line Interface)<br />
而 PHP 本來就是 Script，可以直接在 Linux 下執行<br />
就像是 Perl or Shell 那樣</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mk</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8837</link>
		<dc:creator>mk</dc:creator>
		<pubDate>Wed, 07 Feb 2007 03:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8837</guid>
		<description>我想即使不懂任何一種編程語言也可 copy and paste 吧？
我覺得如果 PHP 可以像 Java 一樣，再提供一種「純程式碼」模式倒是不錯的呢。</description>
		<content:encoded><![CDATA[<p>我想即使不懂任何一種編程語言也可 copy and paste 吧？<br />
我覺得如果 PHP 可以像 Java 一樣，再提供一種「純程式碼」模式倒是不錯的呢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admun</title>
		<link>http://mk.netgenes.org/archives/501/comment-page-1/#comment-8834</link>
		<dc:creator>admun</dc:creator>
		<pubDate>Tue, 06 Feb 2007 15:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/archives/501/#comment-8834</guid>
		<description>I think the way it&#039;s heading for PHP is fine. Since ppl who want to use template in PHP can use Smarty (http://smarty.php.net/) or other engine, and stay away if they don&#039;t. 

The template is useful to allow developer to build their applications and allow their users to change the layout as needed. blog is an example, developer can provide a template to the layout with the template engine so user can change layout without knowing PHP. I am sure you see in wp that you have to put in code-like snippet (beginning with 
: &lt;a&gt;&quot; title=&quot;Read entry: &quot;&gt;&lt;/a&gt;






posted by: &lt;a&gt;&quot; title=&quot;Author: &quot;&gt;&lt;/a&gt;





tags: 





comments: 





trackbacks: 





display: x











All  are replaced with content dynamically in run-time. The user can see more clear how the lapout is like since it&#039;s HTML.

BTW, nice blog.</description>
		<content:encoded><![CDATA[<p>I think the way it&#8217;s heading for PHP is fine. Since ppl who want to use template in PHP can use Smarty (<a href="http://smarty.php.net/" rel="nofollow">http://smarty.php.net/</a>) or other engine, and stay away if they don&#8217;t. </p>
<p>The template is useful to allow developer to build their applications and allow their users to change the layout as needed. blog is an example, developer can provide a template to the layout with the template engine so user can change layout without knowing PHP. I am sure you see in wp that you have to put in code-like snippet (beginning with<br />
: <a>&#8221; title=&#8221;Read entry: &#8220;&gt;</a></p>
<p>posted by: <a>&#8221; title=&#8221;Author: &#8220;&gt;</a></p>
<p>tags: </p>
<p>comments: </p>
<p>trackbacks: </p>
<p>display: x</p>
<p>All  are replaced with content dynamically in run-time. The user can see more clear how the lapout is like since it&#8217;s HTML.</p>
<p>BTW, nice blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

