Djangos ‘escapejs’ is too aggressive and inserts unicode. Provide a basic filter to allow angular template content to be used within javascript strings.
For all static HTML templates, generate a dictionary of template contents. If the template has been overridden by a theme, load the override contents instead of the original HTML file. One use for this is to pre-populate the angular template cache.
Listen for compress events. If the angular templates have been re-compressed, also clear them from the Django cache backend. This is important to allow deployers to change a template file, re-compress, and not accidentally serve the old Django cached version of that content to clients.