 
 # exports
 
+HTMLCompiler.extensions = extensions
 module.exports = HTMLCompiler
 

        # values
        @loaded = no
        @loading = no
        #aliases
        @loadSync = @open

    read: (filename, callback) ->
        fs.readFile filename, (err, data) =>

                done()
            else
                # save json dom in an own file
                ext = extname(opts.dest).toLowerCase().substr(1) # without dot
                unless @extensions[ext]?
                    throw new Error "file extension of #{opts.dest} not supported."
                source = @extensions[ext](elem.data)
                fs.writeFile(opts.dest, source, done)

        # do an auto load if not loaded so an extra load call is not needed
