Re: [SMARTY-DEV] Re: docs freeze

From: Date: Wed, 24 Mar 2004 16:31:23 +0000
Subject: Re: [SMARTY-DEV] Re: docs freeze
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2235@lists.php.net to get a copy of this message
render out the html then grep for '&#38;amp;' any code example with funcname($foo, &$smarty) would cause it... in the .xml file it is written funcname($foo, &amp;$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 "&amp;" in > > the rendered HTML display (source looks like "&#38;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! > >

« previous php.smarty.dev (#2235) next »