Hi!

I just came across a bug in XML().

I was trying to generate shtml includes, so had a line like:

 ${XML('<!--#include virtual="/stations/' + si['OutputDir'] 
+ '/stationMenu.html" -->')}

However, in my processed template, this string would show up:

${XML('')}

I discovered that if you pass a string to XML that has comments in it 
(i.e. <!-- and -->) the evaluation doesn't run and you get the line 
verbatim in your output.

I had to do this:

<?python
var = '<!--#include virtual="/stations/' + si['OutputDir'] 
+ '/stationMenu.html"-->'
?>
${XML(var)}

Strange.

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to