protected function replaceVars ($data)
	{

		// Replace variables

		foreach ($this->vars as $key => $val)
		{
			$data	= str_replace ($this->startDelimiter . $key . $this->endDelimiter, $val, $data);
		}

		// Remove any remaining variables in the template

		$data	= preg_replace ('/' . $this->startDelimiter . '.*' . $this->endDelimiter . '/', '', $data);

		// Return replaced data string

		return $data;

	}