Creates a helper instance for rendering a subtemplate.

@param outputBuf The Appendable to append the output to.
@param data The template data.
@return The newly created RenderVisitor instance.
322029
protected RenderVisitor createHelperInstance(Appendable outputBuf, SoyRecord data) {
    return new RenderVisitor(
        evalVisitorFactory,
        outputBuf,
        basicTemplates,
        deltemplates,
        data,
        ijData,
        activeDelPackageSelector,
        msgBundle,
        xidRenamingMap,
        cssRenamingMap,
        debugSoyTemplateInfo,
        pluginInstances);
  }
1141241
@Override
	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
		WApplication application = (WApplication) component;
		XmlStringBuilder xml = renderContext.getWriter();

		UIContext uic = UIContextHolder.getCurrent();
		String focusId = uic.getFocussedId();

		// Check that this is the top level component
		if (application.getParent() != null) {
			LOG.warn("WApplication component should be the top level component.");
		}

		xml.appendTagOpen("ui:application");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendUrlAttribute("applicationUrl", uic.getEnvironment().getPostPath());
		xml.appendUrlAttribute("ajaxUrl", uic.getEnvironment().getWServletPath());
		xml.appendOptionalAttribute("unsavedChanges", application.hasUnsavedChanges(), "true");
		xml.appendOptionalAttribute("title", application.getTitle());
		xml.appendOptionalAttribute("defaultFocusId", uic.isFocusRequired() && !Util.empty(focusId),
				focusId);
		xml.appendOptionalUrlAttribute("icon", WApplication.getIcon());
		xml.appendClose();

		// Tracking enabled globally
		if (TrackingUtil.isTrackingEnabled()) {
			xml.appendTagOpen("ui:analytic");
			xml.appendAttribute("clientId", TrackingUtil.getClientId());
			xml.appendOptionalAttribute("cd", TrackingUtil.getCookieDomain());
			xml.appendOptionalAttribute("dcd", TrackingUtil.getDataCollectionDomain());
			xml.appendOptionalAttribute("name", TrackingUtil.getApplicationName());
			xml.appendEnd();
		}

		// Hidden fields
		Map<String, String> hiddenFields = uic.getEnvironment().getHiddenParameters();

		if (hiddenFields != null) {
			for (Map.Entry<String, String> entry : hiddenFields.entrySet()) {
				xml.appendTagOpen("ui:param");
				xml.appendAttribute("name", entry.getKey());
				xml.appendAttribute("value", entry.getValue());
				xml.appendEnd();
			}
		}
		// Custom CSS Resources (if any)
		for (WApplication.ApplicationResource resource : application.getCssResources()) {
			String url = resource.getTargetUrl();
			if (!Util.empty(url)) {
				xml.appendTagOpen("ui:css");
				xml.appendUrlAttribute("url", url);
				xml.appendEnd();
			}
		}

		// Custom JavaScript Resources (if any)
		for (WApplication.ApplicationResource resource : application.getJsResources()) {
			String url = resource.getTargetUrl();
			if (!Util.empty(url)) {
				xml.appendTagOpen("ui:js");
				xml.appendUrlAttribute("url", url);
				xml.appendEnd();
			}
		}

		paintChildren(application, renderContext);

		xml.appendEndTag("ui:application");
	}
901909
@Override
	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
		WTab tab = (WTab) component;
		XmlStringBuilder xml = renderContext.getWriter();

		xml.appendTagOpen("ui:tab");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("open", tab.isOpen(), "true");
		xml.appendOptionalAttribute("disabled", tab.isDisabled(), "true");
		xml.appendOptionalAttribute("hidden", tab.isHidden(), "true");
		xml.appendOptionalAttribute("toolTip", tab.getToolTip());

		switch (tab.getMode()) {
			case CLIENT:
				xml.appendAttribute("mode", "client");
				break;
			case LAZY:
				xml.appendAttribute("mode", "lazy");
				break;
			case EAGER:
				xml.appendAttribute("mode", "eager");
				break;
			case DYNAMIC:
				xml.appendAttribute("mode", "dynamic");
				break;
			case SERVER:
				xml.appendAttribute("mode", "server");
				break;
			default:
				throw new SystemException("Unknown tab mode: " + tab.getMode());
		}

		if (tab.getAccessKey() != 0) {
			xml.appendAttribute("accessKey", String.valueOf(Character.
					toUpperCase(tab.getAccessKey())));
		}

		xml.appendClose();

		// Paint label
		tab.getTabLabel().paint(renderContext);

		// Paint content
		WComponent content = tab.getContent();

		xml.appendTagOpen("ui:tabcontent");
		xml.appendAttribute("id", tab.getId() + "-content");
		xml.appendClose();

		// Render content if not EAGER Mode or is EAGER and is the current AJAX trigger
		if (content != null && (TabMode.EAGER != tab.getMode() || AjaxHelper.isCurrentAjaxTrigger(
				tab))) {
			// Visibility of content set in prepare paint
			content.paint(renderContext);
		}

		xml.appendEndTag("ui:tabcontent");

		xml.appendEndTag("ui:tab");
	}
987396
@Override
    public IPortletRenderExecutionWorker createRenderHeaderWorker(
            HttpServletRequest request,
            HttpServletResponse response,
            IPortletWindowId portletWindowId) {
        final IPortletWindow portletWindow =
                this.portletWindowRegistry.getPortletWindow(request, portletWindowId);
        return new PortletRenderHeaderExecutionWorker(
                portletThreadPool,
                executionInterceptors,
                portletRenderer,
                request,
                response,
                portletWindow);
    }
1301339
function (outputName, renderer) {
        var outputInfo = this.outputs[outputName];
        var parameters = outputInfo.parameters;
        var parametersCopy = outputInfo._parametersCopy;
        if (!parametersCopy) {
            parametersCopy = outputInfo._parametersCopy = {};
        }
        if (parameters) {
            for (var key in parameters) {
                if (key !== 'width' && key !== 'height') {
                    parametersCopy[key] = parameters[key];
                }
            }
        }
        var width, height;
        if (parameters.width instanceof Function) {
            width = parameters.width.call(this, renderer);
        }
        else {
            width = parameters.width;
        }
        if (parameters.height instanceof Function) {
            height = parameters.height.call(this, renderer);
        }
        else {
            height = parameters.height;
        }
        if (
            parametersCopy.width !== width
            || parametersCopy.height !== height
        ) {
            if (this._outputTextures[outputName]) {
                this._outputTextures[outputName].dispose(renderer.gl);
            }
        }
        parametersCopy.width = width;
        parametersCopy.height = height;

        return parametersCopy;
    }
562079
public <T> T output(@NonNull ModelAdapter<T> adapter, INDArray... inputs) {
        return output(adapter, inputs, null);
    }
849763
protected <T extends MessageOutput> void installOutput(MapBinder<String, MessageOutput.Factory<? extends MessageOutput>> outputMapBinder,
                                                           Class<T> target,
                                                           Class<? extends MessageOutput.Factory<T>> targetFactory) {
        install(new FactoryModuleBuilder().implement(MessageOutput.class, target).build(targetFactory));
        outputMapBinder.addBinding(target.getCanonicalName()).to(Key.get(targetFactory));
    }
683445
@Programmatic
    public Renderer newRenderer() {
        final Renderer renderer = (Renderer) classService.instantiate(getRendererClassName());
        serviceRegistry2.injectServicesInto(renderer);
        return renderer;
    }
153390
public final function render(OutputBuffer $out, ViewModelInterface $model, array $params = [])
	{
		$this->context->bind($model);
		$this->context->set('@view', $this);
		
		foreach($params as $k => $v)
		{
			$this->context->set($k, $v);
		}
		
		try
		{
			if($this->getParent() === NULL)
			{
				$this->renderMain($out);
			}
			else
			{
				$this->parent->renderMain($out);
			}

			return $out;
		}
		finally
		{
			$this->parent = false;
			$this->context->unbind();
		}
	}
377319
function (data) {
      var outputData = ''
      if (!(typeof data === 'object')) {
        data = {}
      }

      // Define smarty inside data and copy smarty vars, so one can use $smarty
      // vars inside templates.
      data.smarty = {}
      objectMerge(data.smarty, this.smarty)

      // Take default global modifiers, add with local default modifiers.
      // Merge them and keep them cached.
      this.globalAndDefaultModifiers = jSmart.prototype.defaultModifiersGlobal.concat(this.defaultModifiers)

      // Take default global filters, add with local default filters.
      // Merge them and keep them cached.
      this.globalAndDefaultFilters = jSmart.prototype.filtersGlobal.variable.concat(this.filters.variable)

      jSmartProcessor.clear()
      jSmartProcessor.plugins = this.plugins
      jSmartProcessor.modifiers = this.modifiers
      jSmartProcessor.defaultModifiers = this.defaultModifiers
      jSmartProcessor.escapeHtml = this.escapeHtml
      jSmartProcessor.variableFilters = this.globalAndDefaultFilters
      jSmartProcessor.runTimePlugins = this.runTimePlugins
      jSmartProcessor.blocks = this.blocks
      jSmartProcessor.outerBlocks = this.outerBlocks
      jSmartProcessor.debugging = this.debugging

      // Capture the output by processing the template.
      outputData = jSmartProcessor.getProcessed(this.tree, data, this.smarty)

      // Merge back smarty data returned by process to original object.
      objectMerge(this.smarty, outputData.smarty)
      // Apply post filters to output and return the template data.
      return this.applyFilters(jSmart.prototype.filtersGlobal.post.concat(this.filters.post), outputData.output)
    }
1105971
public <T> T output(long graphId, T value, OperandsAdapter<T> adapter) {
        return adapter.output(this.output(graphId, adapter.input(value)));
    }
441882
function newRenderer(requestId) {
  const renderer = Renderer.install({
    id: requestId,
    url: OUTSTREAM_SRC,
    loaded: false
  });

  renderer.setRender(outstreamRender);

  return renderer;
}
746353
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.setLastBreak(this.isBreak());
        if (!this.isLastBreak())
            return false;
        if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) != HtmlConstants.FOOTING_SCREEN)
            this.setLastBreak(false);     // For footers only

        boolean bInputFound = super.printData(out, iPrintOptions);
        
        return bInputFound;
    }
137981
private Appendable popOutputBuf() {
    Appendable poppedOutputBuf = outputBufStack.pop();
    currOutputBuf = outputBufStack.peek();
    return poppedOutputBuf;
  }
145972
public StringBuilder renderToStringBuilder(Map<?, ?> data) {
		FastStringWriter fsw = new FastStringWriter();
		render(data, fsw);
		return fsw.getBuffer();
	}
1346813
protected function initOutputInterface(string $data):QROutputInterface{

		if($this->options->outputType === $this::OUTPUT_CUSTOM && \class_exists($this->options->outputInterface)){
			return new $this->options->outputInterface($this->options, $this->getMatrix($data));
		}

		foreach($this::OUTPUT_MODES as $outputInterface => $modes){

			if(in_array($this->options->outputType, $modes, true) && \class_exists($outputInterface)){
				return new $outputInterface($this->options, $this->getMatrix($data));
			}

		}

		throw new QRCodeOutputException('invalid output type');
	}
946356
@Override
	protected void afterPaint(final RenderContext renderContext) {
		super.afterPaint(renderContext);

		// UIC serialization stats
		UicStats stats = new UicStats(UIContextHolder.getCurrent());

		stats.analyseWC(this);

		if (renderContext instanceof WebXmlRenderContext) {
			PrintWriter writer = ((WebXmlRenderContext) renderContext).getWriter();

			writer.println("<h2>Serialization Profile of UIC</h2>");
			UicStatsAsHtml.write(writer, stats);

			// ObjectProfiler
			writer.println("<h2>ObjectProfiler - " + getClass().getName() + "</h2>");
			writer.println("<pre>");

			try {
				writer.println(ObjectGraphDump.dump(this).toFlatSummary());
			} catch (Exception e) {
				LOG.error("Failed to dump component", e);
			}

			writer.println("</pre>");
		}
	}