Chameleon templates for javascript files?
问题 I am developing a simple pyramid application where I am using JQuery to do AJAX requests. I have until now had my javascript code within my chameleon templates. Now I want to extract my javascript into another location (e.g. as static resources). My problem is that I find my javascript code relies on dynamically generated content like so: $.post("${request.route_url('my_view')}",{'data': 'some data'}, function(html){ $("#destination").html(html); }); The dynamic element being: "${request