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

            <neft:blank>${this.a}</neft:blank>
        """

        source = View.fromHTML viewPath, viewStr
        View.parse source
        view = source.clone()

        renderParse view

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

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

        renderParse view
