mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
WS
This commit is contained in:
@@ -40,8 +40,13 @@ $smarty->assign('foo', 'bar');
|
|||||||
$smarty->display('example.tpl');
|
$smarty->display('example.tpl');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
]]>
|
||||||
--- example.tpl
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
Where example.tpl is:
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
var foo = <!--{$foo}-->;
|
var foo = <!--{$foo}-->;
|
||||||
function dosomething() {
|
function dosomething() {
|
||||||
|
Reference in New Issue
Block a user