cvs: smarty /docs/en/designers/language-builtin-functions language-function-literal.xml

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1091547240@cvsserver>
mohrt		Tue Aug  3 11:34:01 2004 EDT

  Modified files:              
    /smarty/docs/en/designers/language-builtin-functions	
                                                        	language-function-literal.xml 
  Log:
  update literal function docs to mention ldelim alternate
  
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml:1.1 smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml:1.2
--- smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml:1.1	Tue Apr 13 04:40:21 2004
+++ smarty/docs/en/designers/language-builtin-functions/language-function-literal.xml	Tue Aug  3 11:34:00 2004
@@ -1,20 +1,22 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
 		<sect1 id="language.function.literal">
 			<title>literal</title>
 			<para>
-			Literal tags allow a block of data to be taken literally,
-			not being interpreted by the Smarty engine. This is handy
-			for things like javascript sections, where there maybe
-			curly braces and such things that would confuse the template
-			parser. Anything within {literal}{/literal} tags is not
-			interpreted, but displayed as-is.
+            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.
 			</para>
 <example>
 <title>literal tags</title>
 <programlisting>
 {literal}
-	&lt;script language=javascript&gt;
+	&lt;script type="text/javascript"&gt;
 
         	&lt;!--
                 	function isblank(field) {
@@ -51,4 +53,4 @@
 vim600: syn=xml fen fdm=syntax fdl=2 si
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
--->
\ No newline at end of file
+-->

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.