var xUI = function(){
    this._version = '0.1beta';
    this._template = null;

    this.template = function(t){ if(t) this._template=t; else return this._template };
    this.context = function(varname){ return new RegExp('\\$\{ '+varname+' \}', 'g') };
    this.render = function(data_dict){
        template = this.template();
        for(k in data_dict){ template = template.replace(this.context(k), data_dict[k]) }
        return template;
    };
};

