mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
Boots.. hope this makes sense !
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
<para>
|
<para>
|
||||||
{insert} tags work much like <link
|
{insert} tags work much like <link
|
||||||
linkend="language.function.include">{include}</link> tags,
|
linkend="language.function.include">{include}</link> tags,
|
||||||
except that {insert} tags are NOT cached when you have
|
except that {insert} tags are NOT cached when
|
||||||
template <link linkend="caching">caching</link> enabled. They
|
template <link linkend="caching">caching</link> is enabled. They
|
||||||
will be executed on every invocation of the template.
|
will be executed on every invocation of the template.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@@ -61,6 +61,11 @@
|
|||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Variables passed to {insert} will be cached by the calling script. Instead reference a variable within the inserted file!!
|
||||||
|
ie {insert foo='baa'} will be cached, wheras $foo within the {insert}ed template will not.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Let's say you have a template with a banner slot at the top of
|
Let's say you have a template with a banner slot at the top of
|
||||||
the page. The banner can contain any mixture of HTML, images,
|
the page. The banner can contain any mixture of HTML, images,
|
||||||
|
Reference in New Issue
Block a user