Skip to content

Instantly share code, notes, and snippets.

@bradfol
Created March 4, 2013 18:10
Show Gist options
  • Save bradfol/5084197 to your computer and use it in GitHub Desktop.
Save bradfol/5084197 to your computer and use it in GitHub Desktop.
Local file control #2 of github issue #2184 https://github.com/emberjs/ember.js/issues/2184
<!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://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.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>
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