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">
<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>
<![CDATA[
{* this will print literal delimiters out of the template *}
{ldelim}funcname{rdelim} is how functions look in Smarty!
OUTPUT:
{funcname} is how functions look in Smarty!</programlisting>
]]>
</programlisting>
<para>
The above example will output:
</para>
<screen>
<![CDATA[
{funcname} is how functions look in Smarty!
]]>
</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -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>
<![CDATA[
{literal}
&lt;script type="text/javascript"&gt;
<script type="text/javascript">
&lt;!--
<!--
function isblank(field) {
if (field.value == '')
{ return false; }
@@ -28,12 +28,15 @@
return true;
}
}
// --&gt;
// -->
&lt;/script&gt;
{/literal}</programlisting>
</script>
{/literal}
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml