code: function tmpl(str, data, config) {
  		newstr = str;
  		if (newstr.substr(0, config.templatesOpenTag.length) == config.templatesOpenTag) newstr = "<%=" + newstr.substr(config.templatesOpenTag.length, newstr.length - config.templatesOpenTag.length);
  		if (newstr.substr(newstr.length - config.templatesCloseTag.length, config.templatesCloseTag.length) == config.templatesCloseTag) newstr = newstr.substr(0, newstr.length - config.templatesCloseTag.length) + "%>";
  		return tmplpart2(newstr, data);
  	}
docs: Javascript micro templating by John Resig - source at http://ejohn.org/blog/javascript-micro-templating/