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

                done()
            else
                # save json dom in an own file
                ext = extname(opts.dest).toLowerCase()
                if ext is '.json'
                    source = JSON.stringify(elem.data)
                else if ext is '.js'
                    source = """var link = require('dt-compiler/linker'),
                    tree = #{JSON.stringify elem.data};
                    module.exports = function (rawtemplate) {
                        return link(rawtemplate, tree);
                    };"""
                else
                    throw new Error "file extendsion of #{opts.dest} not supported."
                fs.writeFile(opts.dest, source, done)

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

        # values
        @loaded = no
        @loading = no
        @extensions = {}
        for name, ext of HTMLCompiler.extensions
            @extensions[name] = ext
        #aliases
        @loadSync = @open

    register: (name, ext) ->
        @extensions[name] = ext

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