Re: Re: docs freeze
Monte Ohrt <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
render out the html then grep for '&amp;'
any code example with funcname($foo, &$smarty) would cause it... in the
.xml file it is written funcname($foo, &$smarty) so that is probably
the problem, we don't need to escape that any more?
On Wed, 2004-03-24 at 10:08, Nuno Lopes wrote:
> > One issue I see with my test, ampersands are showing up as "&" in
> > the rendered HTML display (source looks like "&amp;").
>
> Can you give me a specific html so that I can take a look at this, please?
>
> Other things:
> I've finished my job for now, so thats the end of docs freeze (because didou
> can't contribute now).
> So start to modify the docs and test the new system!
>
> The (new) corrected way to write examples is:
> <example>
> <title>SMARTY_DIR</title>
> <programlisting role="php">
> <![CDATA[
> <?php
> // set path to Smarty directory
> define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
>
> require_once(SMARTY_DIR."Smarty.class.php");
> ?>
> ]]>
> </programlisting>
> </example>
>
> Note the CDATA tag and the programlisting role. with CDATA you don't need
> (and can't) escape characters like &. You may write your scripts freely. The
> programlisting role will enable you to highlight the examples automatically.
> You may view for an example.
>
>
> Nuno
>
>
> P.S.: I don't have much time to implement CHM version building now. But PDF
> isn't too complicated. Do you want to be able to build PDF with a 'make
> pdf'?
>
>
>
> !DSPAM:4061b155237238665011738!
>
>
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php