 
 fs = require 'fs'
 os = require 'os'
-{assert, utils, unit} = Neft
+{assert, utils, unit, Document} = Neft
 {describe, it} = unit
 {createView, renderParse, uid} = require './utils'
 

        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
