update literal function docs to mention ldelim alternate

This commit is contained in:
mohrt
2004-08-03 15:34:00 +00:00
parent a1be9e56c7
commit 811de72a63

View File

@@ -3,18 +3,20 @@
<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, Literal tags allow a block of data to be taken literally. This is
not being interpreted by the Smarty engine. This is handy typically used around javascript or stylesheet blocks where curly
for things like javascript sections, where there maybe braces would interfere with the template delimiter syntax. Anything
curly braces and such things that would confuse the template within {literal}{/literal} tags is not interpreted, but displayed
parser. Anything within {literal}{/literal} tags is not as-is. If you need template tags embedded in your literal block,
interpreted, but displayed as-is. consider using
<linkend="language.function.ldelim">{ldelim}{rdelim}</link> to
escape the individual delimiters instead.
</para> </para>
<example> <example>
<title>literal tags</title> <title>literal tags</title>
<programlisting> <programlisting>
{literal} {literal}
&lt;script language=javascript&gt; &lt;script type="text/javascript"&gt;
&lt;!-- &lt;!--
function isblank(field) { function isblank(field) {
@@ -51,4 +53,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml vim: et tw=78 syn=sgml
vi: ts=1 sw=1 vi: ts=1 sw=1
--> -->