function processTpl(sTemplate, htData) {
        htVar.rxTemplate = htVar.rxTemplate || /\${([^{}]*)}/g;

        return sTemplate.replace(htVar.rxTemplate, function(a, b) {
            return (typeof htData[b] == "undefined") ? "" : htData[b];
        });
    }
Simple template processor
@param {String} sTemplate Template String
@param {Hash Table} htData Data Object.
@return {String}
@example
processTpl("My name is ${name}", {name: 'John Doe'});
// returns "My name is John Doe"

processTpl("1st item of Array is '${0}'", ['a','b','c']);
// returns "1st item of Array is 'a'"