public function getTemplateManager() {
		// if the component has not been created yet
		if (!isset($this->templateManager)) {
			// create the component
			$this->templateManager = new TemplateManager($this->templatesPath, $this->frameworkStoragePath . self::TEMPLATES_CACHE_SUBFOLDER);

			// add the current instance as a global to the template manager
			$this->templateManager->addGlobal('app', $this);
		}

		// return the component
		return $this->templateManager;
	}