We actually found this issue last night. For those of you playing the home version of the game, the problem went like this:
Using Genshi, <script> tags are collapsed when the bodies are empty and the tag is in the actual html, so is rendered by Genshi. Basically, if your template looks like this: <html> <head> <title>My Title</title> <script type="text/javascript" src="/javascript/file1.js"></script> <script type="text/javascript" src="/javascript/file2.js"></script> </head> </body> </html> You will actually get this in your output: <html> <head> <title>My Title</title> <script type="text/javascript" src="/javascript/file1.js"/> <script type="text/javascript" src="/javascript/file2.js"/> </head> </body> </html> The problem stems from web browsers now liking a script tag like that, even though it's valid. We had to use Genshi's XML() function to tell Genshi that the script tags were already valid XML and should not be reprocessed. Once we did that, we got the output we expected, and the browser loaded all the .js files correctly. Interesting problem, at least. On Tue, Feb 22, 2011 at 7:42 AM, Diez B. Roggisch <[email protected]> wrote: > On Tuesday, February 22, 2011 02:48:10 am Beyonlo wrote: > > Hey all, > > > > I'm using tg 2.1 and I can't loading mostly js in template. I try > > debug with firebug and just one js is load, others not. Any idea? > > > > The template content is this: http://dpaste.com/437285/ > > > > Are loading until first js, all the rest not are loading. I see in > > firebug. And all the rest js are there in correct path. > > I don't understand your problem. Are the static resources not found? I > don't > use hard-coded links, what I do is to use tosca-widgets to inject them for > me. > > But a quickstarted project should tell you how to properly refer to the > static > file directories. > > Diez > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > > -- Michael J. Pedersen My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 Yahoo/pedermj2002, MSN/[email protected] -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

