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-2.1.1.min.js"></script>
<script src="//jashkenas.github.io/underscore/underscore-min.js"></script>
<script src="//jashkenas.github.io/backbone/backbone-min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
      <script type="text/javascript">
        var Libro = Backbone.Model.extend();
        var unLibro = new Libro({titulo:"El mundo del río", autor:"P.J.Farmer"});
        var Vista = Backbone.View.extend({
          render: function() {
            this.$el
              .append("<b>"+this.model.get("titulo") + "</b>")
              .append("<br> <em>"+this.model.get("autor") + "</em>")            
            return this;
          }
        });
        var unaVista = new Vista({model: unLibro});
        $('body').append(unaVista.render().$el)
      </script>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
ottocolpro
0viewers