some WS and fix build

#dont forget we have a 'make test' :)
This commit is contained in:
nlopess
2004-08-11 12:36:34 +00:00
parent ccba0859b3
commit 0e06d3422b
2 changed files with 49 additions and 39 deletions

View File

@@ -3,24 +3,31 @@
<sect1 id="language.function.ldelim"> <sect1 id="language.function.ldelim">
<title>ldelim,rdelim</title> <title>ldelim,rdelim</title>
<para> <para>
ldelim and rdelim are used for escaping template delimiters, in our ldelim and rdelim are used for escaping template delimiters, in our case
case "{" or "}". You can also use "{" or "}". You can also use <link
<linkend="language.function.literal">{literal}{/literal}</link> to linkend="language.function.literal">{literal}{/literal}</link> to escape
escape blocks of text. blocks of text.
</para> </para>
<example> <example>
<title>ldelim, rdelim</title> <title>ldelim, rdelim</title>
<programlisting> <programlisting>
<![CDATA[
{* this will print literal delimiters out of the template *} {* this will print literal delimiters out of the template *}
{ldelim}funcname{rdelim} is how functions look in Smarty! {ldelim}funcname{rdelim} is how functions look in Smarty!
]]>
</programlisting>
OUTPUT: <para>
The above example will output:
{funcname} is how functions look in Smarty!</programlisting> </para>
<screen>
<![CDATA[
{funcname} is how functions look in Smarty!
]]>
</screen>
</example> </example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -3,22 +3,22 @@
<sect1 id="language.function.literal"> <sect1 id="language.function.literal">
<title>literal</title> <title>literal</title>
<para> <para>
Literal tags allow a block of data to be taken literally. This is Literal tags allow a block of data to be taken literally. This is typically
typically used around javascript or stylesheet blocks where curly used around javascript or stylesheet blocks where curly braces would
braces would interfere with the template delimiter syntax. Anything interfere with the template delimiter syntax. Anything within
within {literal}{/literal} tags is not interpreted, but displayed {literal}{/literal} tags is not interpreted, but displayed as-is. If you
as-is. If you need template tags embedded in your literal block, need template tags embedded in your literal block, consider using <link
consider using linkend="language.function.ldelim">{ldelim}{rdelim}</link> to escape the
<linkend="language.function.ldelim">{ldelim}{rdelim}</link> to individual delimiters instead.
escape the individual delimiters instead.
</para> </para>
<example> <example>
<title>literal tags</title> <title>literal tags</title>
<programlisting> <programlisting>
<![CDATA[
{literal} {literal}
&lt;script type="text/javascript"&gt; <script type="text/javascript">
&lt;!-- <!--
function isblank(field) { function isblank(field) {
if (field.value == '') if (field.value == '')
{ return false; } { return false; }
@@ -28,12 +28,15 @@
return true; return true;
} }
} }
// --&gt; // -->
&lt;/script&gt; </script>
{/literal}</programlisting> {/literal}
]]>
</programlisting>
</example> </example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml