Re: Spyce example

Bruce Webber <[email protected]>
Newsgroups gmane.comp.python.spyce.general
Message-ID <0D7E44253FE3A891B88FE6CA@[192.168.1.102]>
--On Saturday, May 27, 2006 9:30 AM -0700 Jonathan Ellis 
<[email protected]> wrote:

> It's even cleaner if you let Spyce do the string interpolation:
>
>     <div id="navbox">
>     <ul>
>     [[ for tLink in tNavLinks:{ ]]
>         [[ if tLink[0] == sCurrPage:{ ]]
>             <li class="current">[[= tLink[0] ]]</li>
>         [[ }else:{ ]]
>             <li><a href="[[= tLink[1] ]]">[[= tLink[0] ]]</a></li>
>         [[ } ]]
>     [[ } ]]
>     </ul>
>     </div>

Indeed. Thanks!

--
Bruce Webber
[email protected]
http://brucewebber.us


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.