As our frontend dev said it would be good if compiled templates supported
requirejs or even without requirejs one could wrap them inside another function to limit the namespace. This is important because it will not register compiled files as global java functions which is not very good in terms of performance and also could lead to name collisions.
Example call when feature is available:
www.domain.com/soy/hash/index?namespace=myNamespace
and the output js will be wrapped inside a var myNamespace = function() {
}
As our frontend dev said it would be good if compiled templates supported requirejs or even without requirejs one could wrap them inside another function to limit the namespace. This is important because it will not register compiled files as global java functions which is not very good in terms of performance and also could lead to name collisions.
Example call when feature is available: www.domain.com/soy/hash/index?namespace=myNamespace
and the output js will be wrapped inside a var myNamespace = function() { }