mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
some WS and fix build
#dont forget we have a 'make test' :)
This commit is contained in:
@@ -3,24 +3,31 @@
|
||||
<sect1 id="language.function.ldelim">
|
||||
<title>ldelim,rdelim</title>
|
||||
<para>
|
||||
ldelim and rdelim are used for escaping template delimiters, in our
|
||||
case "{" or "}". You can also use
|
||||
<linkend="language.function.literal">{literal}{/literal}</link> to
|
||||
escape blocks of text.
|
||||
ldelim and rdelim are used for escaping template delimiters, in our case
|
||||
"{" or "}". You can also use <link
|
||||
linkend="language.function.literal">{literal}{/literal}</link> to escape
|
||||
blocks of text.
|
||||
</para>
|
||||
<example>
|
||||
<title>ldelim, rdelim</title>
|
||||
<programlisting>
|
||||
<example>
|
||||
<title>ldelim, rdelim</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* this will print literal delimiters out of the template *}
|
||||
|
||||
{ldelim}funcname{rdelim} is how functions look in Smarty!
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
{funcname} is how functions look in Smarty!
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</sect1>
|
||||
|
||||
|
||||
OUTPUT:
|
||||
|
||||
{funcname} is how functions look in Smarty!</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
@@ -3,22 +3,22 @@
|
||||
<sect1 id="language.function.literal">
|
||||
<title>literal</title>
|
||||
<para>
|
||||
Literal tags allow a block of data to be taken literally. This is
|
||||
typically used around javascript or stylesheet blocks where curly
|
||||
braces would interfere with the template delimiter syntax. Anything
|
||||
within {literal}{/literal} tags is not interpreted, but displayed
|
||||
as-is. If you need template tags embedded in your literal block,
|
||||
consider using
|
||||
<linkend="language.function.ldelim">{ldelim}{rdelim}</link> to
|
||||
escape the individual delimiters instead.
|
||||
Literal tags allow a block of data to be taken literally. This is typically
|
||||
used around javascript or stylesheet blocks where curly braces would
|
||||
interfere with the template delimiter syntax. Anything within
|
||||
{literal}{/literal} tags is not interpreted, but displayed as-is. If you
|
||||
need template tags embedded in your literal block, consider using <link
|
||||
linkend="language.function.ldelim">{ldelim}{rdelim}</link> to escape the
|
||||
individual delimiters instead.
|
||||
</para>
|
||||
<example>
|
||||
<title>literal tags</title>
|
||||
<programlisting>
|
||||
<example>
|
||||
<title>literal tags</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
|
||||
<!--
|
||||
<!--
|
||||
function isblank(field) {
|
||||
if (field.value == '')
|
||||
{ return false; }
|
||||
@@ -28,12 +28,15 @@
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// -->
|
||||
// -->
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
|
||||
</script>
|
||||
{/literal}</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
Reference in New Issue
Block a user