         content = ["a", "b", "c"]
         xml = new Template schema:'html5', ->
             @$html ->
-                @$body ->
-                    @$div class:'test', "lala"
-                    @$ul ->
-                        content.forEach (data) =>
-                            @$li(null, data)
+                @body ->
+                    readFile path.join(__dirname,"filename"), (err, filedata) =>
+                        @$div class:'test', filedata
+                        @$ul ->
+                            content.forEach (data) =>
+                                li = @$li({'data-content':data}, data)
+                        @end()
+
 
         xml.on 'end', æ.done
         xml.on 'data', (tag) -> æ.equal results.shift(), tag

            '<html>'
            '<body>'
            '<div class="test">'
            'lala'
            '</div>'
            '<ul>'
            '<li>'
            'a'
            '</li>'
            '<li>'
            'b'
            '</li>'
            '<li>'
            'c'
            '</li>'
            '</ul>'

path = require 'path'
{ readFile } = require 'fs'
{ Template } = require '../async-xml'

module.exports =
