Skip to content

Instantly share code, notes, and snippets.

@caridy
Created June 25, 2010 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caridy/453071 to your computer and use it in GitHub Desktop.
Save caridy/453071 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Event Binder Evolution</title>
</head>
<body>
<div id="doc">
<div id="democlick">
<p>Placeholder for <a href="http://yuilibrary.com/">click</a> listener</p>
</div>
</div>
<!-- YUI 3 Seed //-->
<script type="text/javascript" src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
<!-- Initialization process //-->
<script type="text/javascript">
YUI({
modules: {
'my-custom-module': {
fullpath: './my-custom-module.js'
}
}
}).use('my-custom-module', function(Y) {
// my custom modules set the listeners during the initialization
Y.MyApp.init();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment