 path = require 'path'
 { readFile } = require 'fs'
 { Template } = require '../dynamictemplate'
+streamify = require 'dt-stream'
 
 module.exports =
 
     simple: (æ) ->
-        xml = new Template ->
+        xml = streamify new Template ->
             @$tag('test')
         xml.on 'end', æ.done
         xml.on 'data', (tag) -> æ.equal "<test/>", tag



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


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