mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
WS
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.escaping">
|
<sect1 id="language.escaping">
|
||||||
<title>Escaping Smarty Parsing</title>
|
<title>Escaping Smarty Parsing</title>
|
||||||
<para>
|
<para>
|
||||||
It is sometimes desirable or even necessary to have Smarty ignore sections it
|
It is sometimes desirable or even necessary to have Smarty ignore sections it
|
||||||
@@ -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() {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.math">
|
<sect1 id="language.math">
|
||||||
<title>Math</title>
|
<title>Math</title>
|
||||||
<para>
|
<para>
|
||||||
Math can be applied directly to variable values.
|
Math can be applied directly to variable values.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.syntax.attributes">
|
<sect1 id="language.syntax.attributes">
|
||||||
<title>Attributes</title>
|
<title>Attributes</title>
|
||||||
<para>
|
<para>
|
||||||
Most of the functions take attributes that specify or modify
|
Most of the functions take attributes that specify or modify
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.syntax.comments">
|
<sect1 id="language.syntax.comments">
|
||||||
<title>Comments</title>
|
<title>Comments</title>
|
||||||
<para>
|
<para>
|
||||||
Template comments are surrounded by asterisks, and that is surrounded
|
Template comments are surrounded by asterisks, and that is surrounded
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.syntax.functions">
|
<sect1 id="language.syntax.functions">
|
||||||
<title>Functions</title>
|
<title>Functions</title>
|
||||||
<para>
|
<para>
|
||||||
Each Smarty tag either prints a
|
Each Smarty tag either prints a
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.syntax.quotes">
|
<sect1 id="language.syntax.quotes">
|
||||||
<title>Embedding Vars in Double Quotes</title>
|
<title>Embedding Vars in Double Quotes</title>
|
||||||
<para>
|
<para>
|
||||||
Smarty will recognize assigned variables embedded in double quotes so long
|
Smarty will recognize assigned variables embedded in double quotes so long
|
||||||
|
Reference in New Issue
Block a user