 
 ::
 
-  let willRender: WillRenderFunction = { (tag: Tag, box: MustacheBox) in
+  let logTags: WillRenderFunction = { (tag: Tag, box: MustacheBox) in
       println("\(tag) will render \(box.value!)")
       return box
   }
   
-  // By entering the base context of the template, the willRender function
+  // By entering the base context of the template, the logTags function
   // will be notified of all tags.
   let template = Template(string: "{{# user }}{{ firstName }} {{ lastName }}{{/ user }}")!
   template.extendBaseContext(Box(willRender))

    return MustacheBox(filter: filter)
}

public func Box(value: Any? = nil, render: RenderFunction) -> MustacheBox {
    return MustacheBox(value: value, render: render)
}

public func Box(value: Any? = nil, willRender: WillRenderFunction) -> MustacheBox {
    return MustacheBox(value: value, willRender: willRender)
}

public func Box(value: Any? = nil, didRender: DidRenderFunction) -> MustacheBox {
    return MustacheBox(value: value, didRender: didRender)
}




::

  let square: FilterFunction = Filter { (x: Int, _) in
      return Box(x * x)
  }

