Obtains the URI to a template using the controller name and template name
@param controllerName The controller name
@param templateName The template name
@param includeExtension The flag to include the template extension
@return The template URI
968449
@Override
    public String getTemplateURI(String controllerName, String templateName, boolean includeExtension) {
        if (templateName.startsWith(SLASH_STR)) {
            return getAbsoluteTemplateURI(templateName, includeExtension);
        }
        else if(templateName.startsWith(RELATIVE_STRING)) {
            return getRelativeTemplateURIInternal(templateName, includeExtension);
        }

        FastStringWriter buf = new FastStringWriter();
        String pathToTemplate = BLANK;

        int lastSlash = templateName.lastIndexOf(SLASH);
        if (lastSlash > -1) {
            pathToTemplate = templateName.substring(0, lastSlash + 1);
            templateName = templateName.substring(lastSlash + 1);
        }
        if(controllerName != null) {
            buf.append(SLASH)
                    .append(controllerName);
        }
        buf.append(SLASH)
                .append(pathToTemplate)
                .append(UNDERSCORE)
                .append(templateName);

        if(includeExtension) {
            return buf.append(EXTENSION).toString();
        }
        else {
            return buf.toString();
        }
    }
567766
@Override
	public Template getTemplate(String resource) {
		return BeetlTemplate.wrap(engine.getTemplate(resource));
	}
986190
@Override
    public String getTemplateURI(String controllerName, String templateName) {
        TupleStringKey key = new TupleStringKey(controllerName, templateName);
        String uri = templateURICache.get(key);
        if (uri == null) {
            uri = super.getTemplateURI(controllerName, templateName);
            String prevuri=templateURICache.putIfAbsent(key, uri);
            if (prevuri != null) {
                return prevuri;
            }
        }
        return uri;
    }
46828
protected function getRequiredTemplateVariable($name)
    {
        if(!array_key_exists($name, $this->templateVars))
            throw new ControllerException('Required template variable ['.$name.'] is missing');

        return $this->templateVars[$name];
    }
497
function (id) {
    var o = this.options;
    return path.resolve(o.root, o.viewsDir, id, "template" + o.extension);
  }
283631
protected Template getTemplate(String name) {
    try {
      return configuration.getTemplate(name);
    } catch (IOException e) {
      throw new GenException(Message.DOMAGEN9001, e, e);
    }
  }
104952
public I_CmsTemplateContextProvider getTemplateContextProvider(String providerName) {

        providerName = providerName.trim();
        providerName = removePropertyPrefix(providerName);
        String providerClassName = providerName;
        String providerConfig = "";

        // get provider configuration string if available
        int separatorIndex = providerName.indexOf(",");
        if (separatorIndex > 0) {
            providerClassName = providerName.substring(0, separatorIndex);
            providerConfig = providerName.substring(separatorIndex + 1);
        }

        I_CmsTemplateContextProvider result = m_providerInstances.get(providerName);
        if (result == null) {
            try {
                Class<?> providerClass = Class.forName(providerClassName);
                if (I_CmsTemplateContextProvider.class.isAssignableFrom(providerClass)) {
                    result = (I_CmsTemplateContextProvider)providerClass.newInstance();
                    result.initialize(m_cms, providerConfig);
                    //note: we use the provider name as a key here, which includes configuration parameters
                    m_providerInstances.put(providerName, result);
                }
            } catch (Throwable t) {
                LOG.error(t.getLocalizedMessage(), t);
            }
        }
        return result;
    }
424271
public XExtension getByName(String name) {
                for (XExtension ext : extensionList) {
                        if (ext.getName().equals(name)) {
                                return ext;
                        }
                }
                return null;
        }
1045482
public ExtensionAuthor getExtensionAuthor(String name, String url)
    {
        return getExtensionAuthor(new DefaultExtensionAuthor(name, url));
    }
783193
private static String getJobTemplateName(JobExecutionPlan jobExecutionPlan) {
    Optional<URI> jobTemplateUri = jobExecutionPlan.getJobSpec().getTemplateURI();
    if (jobTemplateUri.isPresent()) {
      return Files.getNameWithoutExtension(new Path(jobTemplateUri.get()).getName());
    } else {
      return null;
    }
  }
458832
public ArrayList<OvhSiteBuilderTemplate> packName_siteBuilderFull_options_templates_GET(String packName) throws IOException {
		String qPath = "/pack/xdsl/{packName}/siteBuilderFull/options/templates";
		StringBuilder sb = path(qPath, packName);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t8);
	}
1182958
function (id) {
    var o = this.options;
    return path.resolve(o.root, o.layoutsDir, id, "template" + o.extension);
  }
414904
@Override
	public Template getTemplate(String resource) {
		return RythmTemplate.wrap(engine.getTemplate(resource));
	}
578692
public String getTemplateNameByRef( String refGroupName, String key )
    {
        assert _urlTemplates != null : "The template config file has not been loaded.";

        if ( _urlTemplates == null )
        {
            return null;
        }

        String ref = _urlTemplates.getTemplateNameByRef( refGroupName, key );
        if ( ref == null )
        {
            // If the template is a secure template, look for the secure default
            // before resolving to the default
            if ( key.equals( URLTemplatesFactory.SECURE_RENDER_TEMPLATE ) ||
                    key.equals( URLTemplatesFactory.SECURE_ACTION_TEMPLATE ) ||
                    key.equals( URLTemplatesFactory.SECURE_RESOURCE_TEMPLATE ) )
            {
                ref = _urlTemplates.getTemplateNameByRef( refGroupName, URLTemplatesFactory.SECURE_DEFAULT_TEMPLATE );
            }
        }

        return ref;
    }
859232
public URLTemplate getURLTemplate( String name )
    {
        URLTemplate urlTemplate = null;

        if ( _servletContext != null )
        {
            URLTemplatesFactory urlTemplatesFactory = URLTemplatesFactory.getURLTemplatesFactory( _servletContext );
            if ( urlTemplatesFactory != null )
            {
                urlTemplate = urlTemplatesFactory.getURLTemplate( name );
            }
        }

        return urlTemplate;
    }
1279434
public String getDeployedViewURI(String controllerName, String viewName) {
        FastStringWriter buf = new FastStringWriter(PATH_TO_VIEWS);
        return getViewURIInternal(controllerName, viewName, buf, true);
    }
733510
private final CompiledST loadTemplateResource(String prefix, String unqualifiedFileName) {
        //if (resourceRoot == null) return null;
        //return loadTemplate(resourceRoot, prefix, unqualifiedFileName);
        if (resourceRoots.isEmpty()) return null;
        CompiledST template = null;
        for (URL resourceRoot : resourceRoots) {
            if ((template = loadTemplate(resourceRoot, prefix, unqualifiedFileName)) != null)
                return template;
        }
        return null;
    }