Created
April 5, 2010 16:29
-
-
Save jboesch/356540 to your computer and use it in GitHub Desktop.
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
(function($){ | |
window.App = { | |
// Site wide options | |
opts = { | |
rootURL: '/' | |
}; | |
// Pass in any options to 'o' and merge it with global defaults | |
init: function(o){ | |
this.opts = $.extend({}, this.opts, o); | |
} | |
} | |
})(jQuery); | |
<script type="text/javascript"> | |
App.init({ | |
rootURL: '<?= $your_siteurl ?>' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment