Sorry I was a bit incomplete on the last post. Here is the code I'm using to render the template:
dirname = os.path.dirname(__file__) template_file = os.path.join(dirname, os.path.join('templates', "scripts.html")) output = template.render(template_file,{}) self.response.out.write(output) If "scripts.html" contains: this is a test <script type='text/javascript'>alert('hi');</script> Then the rendered output is: this is a test <script type="text/javascript">alert("hi");</script>alert("hi");</ script> This is really frustrating, because it works correctly for everything except dynamically rendered javascript. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.