Right now, I'm working with an application that does a lot of ajax requests, and since we're using RESTful URIs, the URI depends on the session or current context, and we'd like to use the h.url_for() helpers to stick within the framework. Looking around, I haven't found any discussions that really cover this.
Does anyone have experience/advice for using URIs generated using h.url_for() in javascript files? We have considered placing files in the templates directory and including them, creating a controller that just parses javascript files that need routes, manually building URIs based on javascript attributes of the page. Anyone have comments on a better solution or what worked well for them? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
