Is there a recommended JS Bin / Plunker / JSFiddle template when asking for help?


#1

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?

Thanks!


Update:

Single file: http://plnkr.co/edit/JMxebEoDhxwlY6UNT2ds?p=preview (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…


#2

This example is awesome: https://github.com/emberjs/data/issues/1872#issuecomment-113717056

Using jquery.mockjax.js


#3

Ember Twiddle is going to solve this.

http://twiddle.joostdvrs.com/


#4

Ember Twiddle is now hosted at https://ember-twiddle.com