Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Ember Starter Kit</title>
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
  <script src="http://builds.emberjs.com/tags/v1.8.0/ember.js"></script>
</head>
<body>
  <script type="text/x-handlebars">
    <h3>Application outlet:</h3>
    <div class="outlet">
      {{outlet}}
    <div>
    
    
    <h3><code>'base'</code> outlet:</h3>
    <div class="outlet base-outlet">
      {{outlet 'base'}}
    </div>
  </script>
  <script type="text/x-handlebars" data-template-name="index">
    <h1>I am the application index, I should be in the application outlet.</h1>
  </script>
  
  <script type="text/x-handlebars" data-template-name="foo">
    <p>I am foo, I have my own outlet here:</p>
    <h3>Foo Outlet:</h3>
    <div class="outlet foo-outlet">  
      {{outlet}}
    </div>
  </script>
  
  <script type="text/x-handlebars" data-template-name="foo/index">
    <p>I am foo index, I should be inside <code>#foo-outlet</code> (green border)</p>
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
DEfusionpro
0viewers