Skip to content

Commit

Permalink
Changed global config variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Sep 14, 2011
1 parent 2dee297 commit 4766535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -83,7 +83,7 @@ manually by modifying the default configuration, and suppressing config output
when initializing RequireJS:

<script type='text/javascript'>
var require = {{ require_js_config|json_encode|raw }};
var require = {{ require_js.config|json_encode|raw }};
require.ready = function() { console.log('DOM ready') };
</script>
{{ require_js_initialize({ 'configure' : false })
4 changes: 3 additions & 1 deletion Twig/Extension/RequireJSExtension.php
Expand Up @@ -79,7 +79,9 @@ public function getFunctions()
public function getGlobals()
{
return array(
'require_js_config' => $this->configurationBuilder->getConfiguration(),
'require_js' => array(
'config' => $this->configurationBuilder->getConfiguration(),
),
);
}

Expand Down

0 comments on commit 4766535

Please sign in to comment.