mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54: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">
|
<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}
|
||||||
<script language=javascript>
|
<script type="text/javascript">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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
|
||||||
-->
|
-->
|
||||||
|
Reference in New Issue
Block a user