Comment 2 for bug 364684

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 364684] [NEW] The javascript code contained in bugtask-index.pt should go into a separate file

On Tue, Apr 21, 2009 at 03:42:44PM -0000, Abel Deuring wrote:
> (2) If a '"' (double quotation mark) appears in JS, we'll get an error when the template is parsed. This leads to ugly, difficult to read code like node.set('innerHTML', '<a id=\'x\' class=\'y\' href=\'z\'>')

This is because we use tal:replace="string: $js-code", in order to be
able to easily customize the code, getting data from python. Moving the
code to a separate file won't make this any better.