"use strict";

$(function(){
  var Workspace = Backbone.Router.extend({
    routes: {
      "": "index",
      "event/:id": "event"
    },

    index: function() {
    },

    event: function(id) {
      window.Evento = Backbone.Model.extend({
        urlRoot: '/event',
      });

      window.EventView = Backbone.View.extend({
        initialize: function() {
          this.model.bind('change', this.render, this);
        },
        render: function(callback) {
          var foo = this.model.get('foo');
          dust.render('event_nginx_access', this.model.toJSON(), function(err, out) {
            $(foo).html(out);
          });
        }
      });

      window.EventPageView = Backbone.View.extend({
        el: $('#backbone-view'),
        initialize: function() {
          var m = new Evento({id: id});
          m.set('foo', this.el);
          m.fetch();
          var view = new EventView({model: m});
          view.render();
        }
      });

      window.EventPageView= new EventPageView();
    },
  });

  new Workspace();
  Backbone.history.start();
});

@@ -89,27 +89,27 @@
     
-%22%22: %22
+'': '
 index
-%22
+'
 ,%0A      
 %22eve
@@ -104,17 +104,47 @@
 ,%0A      
-%22
+'timeline': 'timeline',%0A      '
 event/:i
@@ -148,18 +148,18 @@
 /:id
-%22: %22
+': '
 event
-%22
+'
 %0A   
@@ -559,29 +559,73 @@
 der(
-'event_nginx_access',
+%0A            'event_' + this.model.attributes.parser,%0A           
  thi
@@ -641,16 +641,28 @@
 oJSON(),
+%0A           
  functio
@@ -671,24 +671,26 @@
 err, out) %7B%0A
+  
             
@@ -717,17 +717,30 @@
         
-%7D
+  %7D%0A          
 );%0A     

Add dynamic event template selection