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

                @end()


        xml = template data =
            title:'test'
            content:'..'

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

        ]

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