I *think* wyatt might be referencing a technique similar to how Facebook Connect works.
- In your templates, you can just set a JS variable/object in JSON , and then have your external JS files reference it on load. - Between using that, and a lot of callbacks in your JS code, you can keep most of your client side scripting as a "library" that can be aggressively cached. On Dec 19, 12:32 am, Ahmed <[email protected]> wrote: > Also, another disadvantage is that inline code in script tags does not > get run when it is loaded via a jquery AJAX. The opposite (as in a > separate js file) however is true. And I wonder if it is better to be > able to serve these small snippets as separate js files rather than > inline, so that they get loaded even if downloaded via AJAX. I guess > then I will have to assign a special view/route to these dynamic > snippets, and render via a template. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
