ajaxs/index.js
function templateWithArgs( apiDir, apiName, apiFuncName ) {
	cacheAPIs[apiName] = { 
		reg: (RegularCacheClient
			.replace(/%%api.root%%/g,apiDir)
			.replace(/%%api.name%%/g,apiName)
			.replace(/%%api.funcs%%/g,JSON.stringify(apiFuncName))),
		service: (ServiceCacheClient
			.replace(/%%api.root%%/g,apiDir)
			.replace(/%%api.name%%/g,apiName)
			.replace(/%%api.funcs%%/g,JSON.stringify(apiFuncName)))
	}

}
function templateWithArgs( apiDir, apiName, apiFuncName ) {
	cacheAPIs[apiName] = { 
		reg: (RegularCacheClient
			.replace(/%%api.root%%/g,apiDir)
			.replace(/%%api.name%%/g,apiName)
			.replace(/%%api.funcs%%/g,JSON.stringify(apiFuncName))),
		service: (ServiceCacheClient
			.replace(/%%api.root%%/g,apiDir)
			.replace(/%%api.name%%/g,apiName)
			.replace(/%%api.funcs%%/g,JSON.stringify(apiFuncName)))
	}

}
function templateWithArgs ( apiDir , apiName , apiFuncName ) { cacheAPIs [ apiName ] = { reg : ( RegularCacheClient . replace ( / %%api.root%% / g , apiDir ) . replace ( / %%api.name%% / g , apiName ) . replace ( / %%api.funcs%% / g , JSON . stringify ( apiFuncName ) ) ) , service : ( ServiceCacheClient . replace ( / %%api.root%% / g , apiDir ) . replace ( / %%api.name%% / g , apiName ) . replace ( / %%api.funcs%% / g , JSON . stringify ( apiFuncName ) ) ) } }
Synchronously create a template
Synchronously create a template