Skip to content

Instantly share code, notes, and snippets.

@bradfol
Created March 4, 2013 18:01
Show Gist options
  • Save bradfol/5084141 to your computer and use it in GitHub Desktop.
Save bradfol/5084141 to your computer and use it in GitHub Desktop.
Local file control of github issue #2184 https://github.com/emberjs/ember.js/issues/2184
window.App = Ember.Application.create();
App.Router.map(function(){
this.resource("users");
});
<!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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment