Skip to content

Instantly share code, notes, and snippets.

@dschmidt
Last active December 24, 2015 12:59
Show Gist options
  • Save dschmidt/6801921 to your computer and use it in GitHub Desktop.
Save dschmidt/6801921 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="http://builds.emberjs.com/handlebars-1.0.0.js"></script>
<script type="text/javascript" src="http://builds.emberjs.com/ember-latest.js"></script>
</head>
<body>
<script type="text/x-handlebars" data-template-name="index">
<h1>Hello World</h1>
{{#linkTo 'user' 'Dominik Schmidt'}}Dominik Schmidt{{/linkTo}}
</script>
<script type="text/x-handlebars" data-template-name="user">
<h1>Hello {{name}}</h1>
</script>
<script type="text/javascript">
window.App = Ember.Application.create({
LOG_ACTIVE_GENERATION: true,
LOG_MODULE_RESOLVER: true,
LOG_TRANSITIONS: true,
LOG_TRANSITIONS_INTERNAL: true,
LOG_VIEW_LOOKUPS: true
});
App.Router = Ember.Router.extend({
location: 'history'
});
App.Router.map(function() {
this.resource('user', { path: ':name' });
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment