         delete attributes.$methods
 
       if attributes.$handlers
-        for {name, script, args, reference} in attributes.$handlers
+        for {name, script, args, reference, method} in attributes.$handlers
           name = name.substr(2)
 
           # console.log 'installing handler', name, args, type, script, @
-          callback = eventCallback(name, script, @, args)
+          if method
+            callback = @[method]
+            # console.log('using method', method, callback)
+          else
+            callback = eventCallback(name, script, @, args)
+
           if reference?
             @listenTo(eval(reference), name, callback)
           else

              script: compiler.transform(script, type)
              args: args
              reference: attributes.reference

            classattributes.$handlers.push(handler)
            # console.log 'added handler', attributes.name, script, attributes

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

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