   constructor: (@el, @type, @model, @keypath, @options = {}) ->
     @routine = switch @options.special
       when "event"     then eventBinding @type
+      when "class"     then classBinding @type
       when "iteration" then iterationBinding @type
       else Rivets.routines[@type] || attributeBinding @type
 

eventBinding = (event) -> (el, bind, unbind) ->
  bindEvent el, event, bind if bind
  unbindEvent el, event, unbind if unbind

# Returns an iteration binding routine for the specified collection.
iterationBinding = (name) -> (el, collection, binding) ->

                type = type.replace eventRegExp, ''
                options.special = "event"

              if classRegExp.test type
                type = type.replace classRegExp, ''
                options.special = "class"

              if iterationRegExp.test type
                type = type.replace iterationRegExp, ''
                options.special = "iteration"
