<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[常用技巧]Smarty模板中加入{literal}的标签使其不被解析,以及在smarty模板中嵌入php语句]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 13 Aug 2008 03:06:23 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<textarea name="code" class="html" rows="15" cols="100">
&#123;literal&#125;
&lt;script&gt;
function Login()&#123;
&nbsp;&nbsp;&nbsp;&nbsp;document.LoginForm.submit();
&#125;
&lt;/script&gt;
&#123;/literal&#125;
</textarea><br/>2007-08-09 10:06 刚找到LITERAL的一点东西跟大家分享一下:<br/>Literal 标签区域内的数据将被当作文本处理，此时模板将忽略其内部的所有字符信息. 该特性用于显示有可能包含大括号等字符信息的 javascript 脚本. 当这些信息处于 &#123;literal&#125;&#123;/literal&#125; 标签中时，模板引擎将不分析它们，而直接显示.<br/>例子:<br/><textarea name="code" class="html" rows="15" cols="100">
&#123;literal&#125;
&lt;script language=javascript&gt;

&lt;!--
function isblank(field) &#123;
if (field.value == &#039;&#039;)
&#123; return false; &#125;
else
&#123;
document.loginform.submit();
return true;
&#125;
&#125;
// --&gt;

&lt;/script&gt;
&#123;/literal&#125;
</textarea><br/><br/><br/>php<br/><br/>php tags allow php to be embedded directly into the template. They will not be escaped, regardless of the $php_handling setting. This is for advanced users only, not normally needed.<br/><br/>php 标签允许在模板中直接嵌入 php 脚本. 是否处理这些语句取决于$php_handling的设置. 该语句通常不需要使用，当然如果你非常了解此特性或认为必须要用，也可以使用.<br/><br/> php 标签演示<br/><textarea name="code" class="html" rows="15" cols="100">
&#123;php&#125;
&nbsp;&nbsp;&nbsp;&nbsp;// including a php script directly
&nbsp;&nbsp;&nbsp;&nbsp;// from the template.
&nbsp;&nbsp;&nbsp;&nbsp;include(&quot;/path/to/display_weather.php&quot;);
&#123;/php&#125;
</textarea><br/>这和定义的解散解析标签也有管，如：&lt;&#123; &#125;&gt; ,得这样：<br/><textarea name="code" class="php" rows="15" cols="100">发件人：&lt;&#123;php&#125;&gt;echo $_GET[&#039;m_LoginUser&#039;]&lt;&#123;/php&#125;&gt;</textarea>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [常用技巧]Smarty模板中加入{literal}的标签使其不被解析,以及在smarty模板中嵌入php语句]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>