What I would like to be able to do is to load a whole bunch of arbitrary ejs templates (preferably as part of the payload for another request) and cache them locally so that they don't have to reside in the dom or have to be loaded continually via an async request every time I need to use them.
Is it possible to somehow cache groups of views in CanJS or some related plugin? I read about jmvc include.views but I'm not sure that it is applicable since the views in my case are determined server side (at the time of the request). As a workaround, I could retrieve the views and insert them into the dom but I'm trying to avoid polluting the document (unless this is the best solution performance wise).
Anyways, I would love to hear some feedback on the matter.
Thanks again,
Natan