Implemented Contextual Autoescaping for JQuery Templates
 I put together a 
 playground so you can play around with the implementation.
 
  
 
 
  Briefly, it's a preprocessor that can be applied either at runtime in the browser or at compile time to jQuery templates to add calls to encoder functions based on the context in which 
  ${...}s appear.
 
 
  
 
 
  Are jQuery templates in the process of being speced?  What's the best way to make this available to users of jQuery templates?