Created
March 4, 2013 17:56
-
-
Save bradfol/5084105 to your computer and use it in GitHub Desktop.
Local file demonstration of github issue #2184
https://github.com/emberjs/ember.js/issues/2184
This file contains 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> | |
<title>Application</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script> | |
<script type="text/javascript" src="http://runtriz-cdn.s3.amazonaws.com/ember-1.0.0-rc.1-84-gb46ff48.js"></script> | |
<script data-main="start.js" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.4/require.js"></script> | |
<!--script src="app.js"></script--> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="application"> | |
{{#linkTo "users"}}Users link{{/linkTo}} | |
{{outlet}} | |
</script> | |
<script type="text/x-handlebars" data-template-name="users"> | |
<h4>Users Page</h4> | |
</script> | |
</body> | |
</html> |
This file contains 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
requirejs([],function(){ | |
window.App = Ember.Application.create(); | |
App.Router.map(function(){ | |
this.resource("users"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment