public function renderTemplate($offset='') {
		$randstr = \Asgard\Common\Tools::randstr(10);
		$jq = $this->renderNew('{{'.$randstr.'}}');
		$jq = addcslashes((string)$jq, "'");
		$jq = str_replace("\r\n", "\n", $jq);
		$jq = str_replace("\n", "\\\n", $jq);
		$jq = str_replace('{{'.$randstr.'}}', $offset, $jq);
		return $jq;
	}
public function renderTemplate($offset='') {
		$randstr = \Asgard\Common\Tools::randstr(10);
		$jq = $this->renderNew('{{'.$randstr.'}}');
		$jq = addcslashes((string)$jq, "'");
		$jq = str_replace("\r\n", "\n", $jq);
		$jq = str_replace("\n", "\\\n", $jq);
		$jq = str_replace('{{'.$randstr.'}}', $offset, $jq);
		return $jq;
	}
public function renderTemplate ( $ offset = '' ) { $ randstr = \ Asgard \ Common \ Tools :: randstr ( 10 ) ; $ jq = $ this -> renderNew ( '{{' . $ randstr . '}}' ) ; $ jq = addcslashes ( ( string ) $ jq , "'" ) ; $ jq = str_replace ( "\r\n" , "\n" , $ jq ) ; $ jq = str_replace ( "\n" , "\\\n" , $ jq ) ; $ jq = str_replace ( '{{' . $ randstr . '}}' , $ offset , $ jq ) ; return $ jq ; }
Render the javascript template.
@param  string $offset
@return string
Render the javascript template .