Created
September 27, 2011 05:51
-
-
Save lsmith/1244430 to your computer and use it in GitHub Desktop.
YUI config for a module skin
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 characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Test Page</title> | |
| </head> | |
| <body> | |
| <div id="x">This is X</div> | |
| <script src="http://yui.yahooapis.com/3.4.0/build/yui/yui.js"></script> | |
| <script> | |
| /** | |
| Assumes the current directory has subdir structure | |
| ./ | |
| my/ | |
| my-mod/ | |
| my-mod.js | |
| assets/ | |
| skins/ | |
| sam/ | |
| my-mod.css | |
| **/ | |
| YUI({ | |
| groups: { | |
| my: { | |
| base: './my/', | |
| modules: { | |
| 'my-mod': { | |
| path: 'my-mod/my-mod.js', | |
| skinnable: true | |
| } | |
| } | |
| } | |
| } | |
| }).use('my-mod', function (Y) {}); | |
| </script> | |
| </body> | |
| </html> |
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 characters
| #x { background: red; height: 100px; width: 100px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment