-
Notifications
You must be signed in to change notification settings - Fork 202
Add support for module
configuration via requirejs_include_tag
#174
Comments
@ismell I'm hesitant to add another helper, since someone is going to come along after you and ask for yet another. How about a simple helper that just returns the digestified module paths as JSON? That would be information that only Rails knows. |
Are you suggesting that we no longer use |
@ismell Yeah, I mean, |
Is this what you were thinking?
I think it allows for a lot of flexibility and still allows you to use the |
Still too opinionated. How does a merge work among your configuration and the transformed configuration derived from |
I would like to be able to specify a module config via
requirejs_include_tag
. This will help in scenarios where you want to bootstrap some data as a requirejs module. i.e http://stackoverflow.com/questions/9916073/how-to-load-bootstrapped-models-in-backbone-js-while-using-amd-require-jsBecause the block
requirejs_include_tag
takes in is used to appenddata-
attributes maybe we can create two other helpers for this purpose?Would render something like
The text was updated successfully, but these errors were encountered: