     blockView = new BlockView
       workspace: @$el
       model: block
-    c = new CloneImageView model: block, cloning: blockView
+    c = switch block.get 'type'
+      when 'image'
+        new CloneImageView model: block, cloning: blockView
+      when 'texte'
+        new CloneTextView model: block, cloning: blockView
     @$el.append c.render().el
     @$el.append blockView.render().el
 

# backbone

cat =
  src: "assets/images/cat.jpg"
  height: 200
  width: 300

  render: ->
    @$el.attr src: @model.get 'src'
    @
class CloneTextView extends CloneView
  tagName: 'div'
  render: ->
    @$el.text @model.get 'content'
    @


class Workspace extends Backbone.View
