I would like to find a template to post a question here / Stack Overflow.
The reason why I find it difficult - from the very beginning of my EmberJS adventure I’m using CLI and Broccoli build system. And sharing such repositories is impractical.
But maybe you can recommended a template already exists?
- This one looks OK: Plunker
- Ember Starter Kit also looks great (and right now I’m searching for CDN replacement for local files)
Thanks!
Update:
Single file: Plunker - Untitled (only 40 lines of code)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
</head>
<body>
<script type="text/x-handlebars">
<h2>Welcome to Ember.js</h2>
{{outlet}}
</script>
<script type="text/x-handlebars" id="index">
<ul>
{{#each item in model}}
<li>{{item}}</li>
{{/each}}
</ul>
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://builds.emberjs.com/release/ember.debug.js"></script>
<script src="http://builds.emberjs.com/release/ember-template-compiler.js"></script>
<script>
App = Ember.Application.create();
App.Router.map(function() {
// put your routes here
});
App.IndexRoute = Ember.Route.extend({
model: function() {
return ['red', 'yellow', 'blue'];
}
})
</script>
</body>
</html>
Now trying to add Ember Data…