Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoyAjaxController: provide support for namespace #21

Open
matiwinnetou opened this issue Oct 10, 2013 · 2 comments
Open

SoyAjaxController: provide support for namespace #21

matiwinnetou opened this issue Oct 10, 2013 · 2 comments
Milestone

Comments

@matiwinnetou
Copy link
Owner

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() {
}

@matiwinnetou
Copy link
Owner Author

I need to learn more about requirejs in order to implement this

@matiwinnetou
Copy link
Owner Author

Speak with Uwe about this because I think library supports namespaces based on soy namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant