mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
update literal function docs to mention ldelim alternate
This commit is contained in:
@@ -3,18 +3,20 @@
|
||||
<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}
|
||||
<script language=javascript>
|
||||
<script type="text/javascript">
|
||||
|
||||
<!--
|
||||
function isblank(field) {
|
||||
@@ -51,4 +53,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
||||
|
Reference in New Issue
Block a user