protected function output($buffer)
	{
		$buffer = $this->replaceInsertTags($buffer);
        $buffer = str_replace(array('{{request_token}}', '[{]', '[}]'), array(REQUEST_TOKEN, '{{', '}}'), $buffer);
        $buffer = str_replace('{{request_token}}', \RequestToken::get(), $buffer);

		if (is_array($buffer) || is_object($buffer))
		{
			$buffer = json_encode($buffer);
		}

		echo $buffer;
		exit;
	}