From a68d95249475fef0ffcf56a785a76fa0b51c7ba7 Mon Sep 17 00:00:00 2001 From: didou Date: Sat, 29 May 2004 21:22:39 +0000 Subject: [PATCH] better examples --- .../api-functions/api-register-block.xml | 8 ++++++- .../programmers/caching/caching-cacheable.xml | 23 +++++++++++-------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/docs/en/programmers/api-functions/api-register-block.xml b/docs/en/programmers/api-functions/api-register-block.xml index 81f5099b..21246cea 100644 --- a/docs/en/programmers/api-functions/api-register-block.xml +++ b/docs/en/programmers/api-functions/api-register-block.xml @@ -53,7 +53,13 @@ function do_translation ($params, $content, &$smarty, &$repeat) } } ?> - +]]> + + + where the template is: + + +Preventing a plugin's output from being cached is_cached('index.tpl')) { $smarty->display('index.tpl'); ?> - - -index.tpl: - + + + where index.tpl is: + + +endtime} ]]> @@ -89,10 +89,13 @@ $smarty->register_block('dynamic', 'smarty_block_dynamic', false); $smarty->display('index.tpl'); ?> - - -index.tpl: - +]]> + + + where index.tpl is: + + +