   handle_any_object = (object) ->
     @object object
     true
+
+  # TODO make this configurable
+  result_handlers =[
+    ignored,
+    handle_cmd,
+    handle_renderable,
+    handle_using_extension
+    handle_any_object
+  ]
+
+  display_object = (ctx, object) ->
+    for handler in result_handlers
+      return if handler.call ctx, object
 
 
   collect_extension_points = (context, extension_point) ->

        $div = $('<div/>')
        if contents?
          if _.isFunction contents
            return @nested_item contents
          else
            $div.append contents
        @add_rendered $div

      previous_running_context_binding = running_context_binding
      running_context_binding = run_context
      result = fn.apply run_context
      display_object run_context, result
    finally
      running_context_binding = previous_running_context_binding

