Skip to content

Instantly share code, notes, and snippets.

@samselikoff
Created August 1, 2013 06:34
Show Gist options
  • Save samselikoff/6128915 to your computer and use it in GitHub Desktop.
Save samselikoff/6128915 to your computer and use it in GitHub Desktop.
Failing test, handlebars doesn't notify of mismatch tag.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Ember template" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.6/ember.min.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/ember-data-latest.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<script type="text/x-handlebars" data-template-name="index">
<h1>Hi!</h1>
{{#each item in model}}
{{linkTo test}}{{item}}{{/linkTo}}
{{/each}}
</script>
</body>
</html>
var App = Ember.Application.create({
});
App.Router.map(function() {
this.route('test');
});
App.IndexRoute = Ember.Route.extend({
model: function() {
return ['red', 'yellow', 'blue'];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment