On Sat, 2006-01-21 at 18:42 +0100, Dirk Meyer wrote:
> "Daniel C. Casimiro" wrote:
> > Next, a "view" is defined in a file "music_view.pyxml."  This would be
> > the tricky implementation part...
> >      
> > <canvas style="video menu">
> >   <image name="background" width="100%" height="100%"/>        
> >   <container x="overscan_x1" y="overscan_y1" width="complete width 
> >     overscan_x1 - overscan_x2" height="...">
> >     <% for item in music_library: %>        // Python code...
> >     <text> <% item.name %> </text>  
> >     ...
> 
> By playing with a webserver (see kaa.cherrypy) I found Kid
> (http://kid.lesscode.org/). Maybe we can use that.
> 

I'd recommend taking a look *inside* kid before you do that.  It's not
pretty. User defined variables clash with class attributes, so you can't
use certain variables in your templates (the docs mention 3 or 4 of
them, but there's actually around twice that many).

Also, fwiw, XML sucks.  Have you considered using one of the Python
templating/XHTML generation libs like Nevow's Stan or XIST?  Much
better.  Terse, clean syntax, less typing, more power.

Regards,
Cliff



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to