               script: compiler.transform(script, type)
               args: args
               reference: attributes.reference
+              method: attributes.method
 
             classattributes.$handlers.push(handler)
             # console.log 'added handler', attributes.name, script, attributes

        delete attributes.$methods

      if attributes.$handlers
        for {name, script, args, reference} in attributes.$handlers
          name = name.substr(2)

          # console.log 'installing handler', name, args, type, script, @
          callback = eventCallback(name, script, @, args)
          if reference?
            @listenTo(eval(reference), name, callback)
          else

      # return if not input
      e = document.createElement('div');
      e.innerHTML = input;
      e.childNodes[0]?.nodeValue

    processSpecialTags = (el, classattributes, defaulttype) ->
      classattributes.$types ?= {}
