Returns path of the target view templates.
 Do not make this method public unless Rendarable module calls controller's target_view_path method to render resources.
 @api protected
968266
def target_view_path
        target_type = @target.to_resources_name
        view_path = [controller_path, target_type].join('/')
        lookup_context.exists?(action_name, view_path) ?
          view_path :
          [controller_path, DEFAULT_VIEW_DIRECTORY].join('/')
      end
846044
public function render()
	{
		$path = $this->template;
		if (array_key_exists($path, ViewModel::$availableTemplates)) {
			$path = 'src/' . ViewModel::$availableTemplates[$this->template];
		}
		if (file_exists($path)) {
			ob_start();
			include($path);
			$output = ob_get_contents();
			ob_end_clean();
			return $output;
		} else {
			throw new \Exception("The requested template (" . $path . ") not found!");
		}
	}
1358254
public function getViewPath()
    {
        $module = $this->module;
        
        if (substr($module, 0, 1) !== '@') {
            $module = '@'.$module;
        }
        
        return implode(DIRECTORY_SEPARATOR, [Yii::getAlias($module), 'views', 'aws', $this->getViewFolderName()]);
    }
593168
public function getViewPath()
    {
        // Cache mechanism
        if (self::$_viewPath) {
            return self::$_viewPath;
        }
        
        // Called widget filepath
        $reflectionClass = new ReflectionClass($this);
        $widgetPath = dirname($reflectionClass->getFileName());
        // For Codeigniter view which doesn't support absolute path
        $relativePath = str_replace(APPPATH, '', $widgetPath);

        // Real relative view path for Codeigniter
        return self::$_viewPath = "../{$relativePath}/views/";
    }
692247
public function getRelativePath()
    {
        $templates = $this->config['directories']['templates'];

        $extension = $this->config['templates']['extension'];

        return $templates . '/' . $this->getFilename($extension);
    }
512806
protected function getViewPath()
    {
        $key = $this->form->getResourceId();

        if ($key) {
            return $this->getListPath().'/'.$key;
        } else {
            return $this->getListPath();
        }
    }
273085
def render
      Mustache.view_namespace = self.class

      result = {}
      self.class.views.each do |view_name|
        template = File.join 'templates', "#{view_name}.mustache"
        template_path = self.class.find template

        view = File.join 'views', "#{view_name}.rb"
        view_path = self.class.find view

        Mustache.template_path = File.dirname template_path
        Mustache.view_path     = File.dirname view_path
        mustache = Mustache.view_class(view_name).new(self)
        mustache.template_name = view_name
        result[view_name] = mustache.render
      end
      result
    end
604691
public function staticPath()
    {
        $routeKey = strpos($this->template, ':');
        if ($routeKey !== false) {
            return substr($this->template, 0, $routeKey);
        }
        $routeKey = strpos($this->template, '{');
        if ($routeKey !== false && strpos($this->template, '}') !== false) {
            return substr($this->template, 0, $routeKey);
        }
        $star = strpos($this->template, '*');
        if ($star !== false) {
            $path = rtrim(substr($this->template, 0, $star), '/');

            return $path === '' ? '/' : $path;
        }

        return $this->template;
    }
1254238
public function viewPath()
    {
        return is_null($this->options['views_path'])
            ? public_path($this->options['public_dirname'] . '/' . $this->name() . '/views')
            : rtrim($this->options['views_path'], '/') . '/' . $this->name();
    }
610491
public function templatePath($path = null)
    {
        deprecationWarning('ViewBuilder::templatePath() is deprecated. Use ViewBuilder::setTemplatePath() or ViewBuilder::getTemplatePath() instead.');
        if ($path !== null) {
            return $this->setTemplatePath($path);
        }

        return $this->getTemplatePath();
    }
1101887
private function getPathForView()
    {
        $methodName = lcfirst($this->method);
        $className = lcfirst($this->class);

        $package = $this->app->getPackage($this->package);
        $pathPieces = array($package['package_path'], 'res', 'view', $className, $methodName);
        $path = implode(self::DS, $pathPieces) . '.phtml';
        if (file_exists($path)) {
            return $path;
        }
        $e = new ViewFileNotFoundException('Invalid view file path, expected: "' . $path . '"');
        $e->setAdditionalData('View Path Checked: ', $path);
        throw $e;
    }
684778
public function findAllTemplates()
    {
        if (null !== $this->templates) {
            return $this->templates;
        }

        $templates = array();

        foreach ($this->paths as $dir) {
            $templates = array_merge($templates, $this->findTemplatesInFolder($dir));
        }

        return $this->templates = $templates;
    }
297472
public function actionView()
    {
        $path = $this->getPublicPath();
        if (preg_match('@^asset[a-zA-Z0-9]{10}/.*$@', $path)) {
            $path = '/'.substr($path, 16);
        }
        $realPath = \Staq::App()->getFilePath('/public' . $path);
        if (
            empty($realPath) ||
            is_dir($realPath) ||
            \UString::isEndWith($realPath, '.php') /* TODO: Add to settings */
        ) {
            return NULL;
        }
        $this->renderStaticFile($realPath);
        return TRUE;
    }
594286
public static function getTemplatePath(){
        if(empty(self::$templatesPath)){
            $dir = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem')->getDir();
            self::$templatesPath = $dir.'model/qti/templates/';
        }
        $returnValue = self::$templatesPath;

        return (string) $returnValue;
    }
702354
public function getDestinationFilePath()
    {
        $path = $this->laravel['modules']->getModulePath($this->getModuleName());

        $controllerPath = $this->laravel['modules']->config('paths.generator.controller');

        return $path.$controllerPath.'/'.$this->getControllerName().'.php';
    }
819897
protected function getTemplatePath()
    {
        if (!defined('BEHAVIOR_PROVIDER_FASSADE_TEMPLATE_PATH')) {
            $r = new ReflectionObject($this);
            $dirname = dirname($r->getFileName());
            $templatePath = $dirname.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR;
            define('BEHAVIOR_PROVIDER_FASSADE_TEMPLATE_PATH', $templatePath);
        }

        return BEHAVIOR_PROVIDER_FASSADE_TEMPLATE_PATH;
    }
1168657
public function getViewPath()
    {
        if (! $this->base) {
            return $this->view;
        }

        return rtrim($this->base, DIRECTORY_SEPARATOR)
             . DIRECTORY_SEPARATOR
             . ltrim($this->view, DIRECTORY_SEPARATOR);
    }