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: + + +