     @view
 
 class If
-  constructor: (@ast, @document, @model, @parentController) ->
+  constructor: (@ast, @document, @model, @controller) ->
     @anchor = document.createTextNode('')
     @model.bind? "change:#{@ast.arguments[0]}", @build
 

    @nodes[@nodes.length - 1].lastElement()

class In
  constructor: (@ast, @document, @model, @parentController) ->
    @anchor = document.createTextNode('')
    @model.bind? "change:#{@ast.arguments[0]}", @build


class Event
  constructor: (@ast, @node, @document, @model, @controller) ->
    @element = @node.element
    self = this # work around a bug in coffeescript
    callback = (e) ->
      e.preventDefault() if self.ast.preventDefault
      self.controller[self.ast.value](e)
    @element.addEventListener(@ast.name, callback, false)

class Attribute
