Last active
January 26, 2016 16:41
-
-
Save astorm/4668d2cc296b77911341 to your computer and use it in GitHub Desktop.
Revisions
-
astorm revised this gist
Jan 26, 2016 . 2 changed files with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ We kick off a program with this requirejs(['Pulsestorm_RequireExample1/example'],function(example){ alert(example.message); }); This program uses the javascript module named `Pulsestorm_RequireExample1/example`. **Something** in Magento 2 converts `Pulsestorm_RequireExample1/example` into http://magento-2-with-keys.dev/static/frontend/Magento/ultimo/en_US/Pulsestorm_RequireExample1/example.js This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ -
astorm created this gist
Jan 26, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <h1>Require Module in Source</h1> <script type="text/javascript"> requirejs(['Pulsestorm_RequireExample1/example'],function(example){ alert(example.message); }); </script>