Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="//builds.emberjs.com/tags/v1.7.0/ember.js"></script>
<script src="http://builds.emberjs.com/beta/ember-data.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <script type="text/x-handlebars">
  {{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="posts">
{{sorting-header sortProperties=sortProperties action='sort'}}
{{filter-header action='filter'}}
<ul>
  {{#each filteredContent}}
  <li>{{title}} ({{id}})
    {{#if published}}<b>Published</b>{{/if}}
  </li>
  {{/each}}
</ul>
</script>
  
<script type="text/x-handlebars" id="components/sorting-header">
  <dt>Sort:</dt>
  {{sorting-key title='Id'
                key='id'
                sortProperties=sortProperties
                action='sort'}}
  {{sorting-key title='Title'
                key='title'
                sortProperties=sortProperties
                action='sort'}}
  {{sorting-key title='Published'
                key='published'
                sortProperties=sortProperties
                action='sort'}}
</script>
<script type="text/x-handlebars" id="components/sorting-key">
  <a {{action 'sort' 'title'}}>{{title}}</a>
</script>
  
<script type="text/x-handlebars" id="components/filter-header">
  <dt>Filter:</dt>
  <dd {{action 'filter' 'id' 3}}>Less than 3</dd>
  <dd {{action 'filter' 'title' 'you'}}>Contains "you"</dd>
</script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
gryzzlypro
0viewers