fixing livedocs build

This commit is contained in:
didou
2004-03-30 09:16:44 +00:00
parent 1b1b075360
commit 8cef1056f8
5 changed files with 19 additions and 9 deletions

View File

@@ -608,7 +608,10 @@ $smarty->load_filter('output', 'compress'); // load output filter named 'compres
</para>
<example>
<title>register_block</title>
<programlisting>
<programlisting role="php">
<![CDATA[
<?php
/* PHP */
$smarty->register_block("translate", "do_translation");
@@ -619,11 +622,14 @@ function do_translation ($params, $content, &$smarty) {
echo $translation;
}
}
?>
{* template *}
{translate lang="br"}
Hello, world!
{/translate}</programlisting>
{/translate}
]]>
</programlisting>
</example>
</sect1>
<sect1 id="api.register.compiler.function">