I don't know where else I may put js and include it, so yes, I do think so. Also, I don't have any page-specific js, all of them are included in multiple templates, often multiple modules, and I have somewhat generic ids, like #tabs always means this needs jquery ui tabs applied, etc.
On Mon, Jun 1, 2009 at 18:01, Mark Smith <[email protected]> wrote: > > If I am writing some page specific javascript where should I put it? > > The way I see it I have 3 options: > > 1) Embed it in the page template (feels very hacky) > > 2) Stick it in a global .js and load it every time regardless. (could > cause problems and isn't really scalable) > > 3) Put it in its own .js file in the web folder and add it to the view > (again seems like it would be hard to manage, but feels slightly less > evil than the first 2 options) > > Are there other options I haven't considered? > > What do you do? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
