hearsayit / HearsayRequireJSBundle

RequireJS integration for Symfony2.
130 stars 55 forks source link

require_js Twig global #50

Closed bobwallis closed 10 years ago

bobwallis commented 11 years ago

To close #49

I've defined the variable with getGlobals as it was in 1.0.

I'm a little confused as to why require_js_src is defined as a Twig function rather than a global though, given it doesn't accept arguments. Would you prefer a require_js_config function to be created to hold the configuration instead to be consistent?

ihortymoshenko commented 11 years ago

@bobwallis, look at this commit.

bobwallis commented 11 years ago

Ah, I see. That explains the require_js_src Twig function.

I'm trying to use what used to be require_js.config to work with the configuration though. Can this be added back in, or is there a different way to use that now?