             <neft:blank>${this.a}</neft:blank>
         """
 
-        source = View.fromHTML viewPath, viewStr
-        View.parse source
+        source = Document.fromHTML viewPath, viewStr
+        Document.parse source
         view = source.clone()
 
         renderParse view

        path = "#{os.tmpdir()}/#{filename}"
        fs.writeFileSync path, "module.exports = function(){ this.a = 1; };", 'utf-8'

        source = View.fromHTML uid(), """
            <neft:script href="#{path}" />
            <neft:blank>${this.a}</neft:blank>
        """
        View.parse source
        view = source.clone()

        renderParse view


    describe.onServer '[filename]', ->
        it 'supports .coffee files', ->
            view = Document.fromHTML uid(), """
                <neft:script filename="a.coffee"><![CDATA[
                    module.exports = class A
                        constructor: ->
                            @a = 1
                ]]></neft:script>
            """
            Document.parse view
            view = view.clone()

            renderParse view
