         ]
 
     pretty: (æ) ->
-        xml = new Template schema:5, pretty:" ", doctype:on, ->
+        xml = streamify new Template schema:5, pretty:" ", doctype:on, ->
             @$html ->
                 @$head ->
                     @$title "holla"
                 @$body ->
                     @$p "hello world"
         xml.ready æ.done
-        xml.on 'data', (tag) -> æ.equal results.shift(), tag
+        xml.stream.on 'data', (tag) -> æ.equal results.shift(), tag
         results = [
             '<!DOCTYPE html>\n'
             '<html>\n'


    html5: (æ) ->
        content = ["a", "b", "c"]
        xml = new Template schema:5, doctype:on, ->
            @$html ->
                @body ->
                    file = path.join(__dirname,"..","filename")



        xml.ready æ.done
        xml.stream.on 'data', (tag) -> æ.equal results.shift(), tag
        results = [
            '<!DOCTYPE html>'
            '<html>'
