From 796a57cddf5afca9c1b624d6956cbb96dc838ac3 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Tue, 28 Mar 2006 01:08:14 +0000 Subject: [PATCH] Boots.. hope this makes sense ! --- .../language-function-insert.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/en/designers/language-builtin-functions/language-function-insert.xml b/docs/en/designers/language-builtin-functions/language-function-insert.xml index f2feecbb..7cfe1d1e 100644 --- a/docs/en/designers/language-builtin-functions/language-function-insert.xml +++ b/docs/en/designers/language-builtin-functions/language-function-insert.xml @@ -5,8 +5,8 @@ {insert} tags work much like {include} tags, - except that {insert} tags are NOT cached when you have - template caching enabled. They + except that {insert} tags are NOT cached when + template caching is enabled. They will be executed on every invocation of the template. @@ -61,6 +61,11 @@ + +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. + + 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,