Package com.google.template.soy.soytree

Examples of com.google.template.soy.soytree.AutoescapeMode


      Set<String> autoescapeCancellingDirectives)
      throws SoyAutoescapeException {
    Context endContext;
    try {
      Context context = startContext;
      AutoescapeMode autoescapeMode = templateNode.getAutoescapeMode();
      context = new InferenceEngine(autoescapeMode, inferences, autoescapeCancellingDirectives)
          .infer(templateNode, context);
      // Context started off as startContext and we have propagated context through all of
      // template's children, so now context is the template's end context.
      endContext = context;
View Full Code Here


    visitRenderUnitNode(node, "param", "{param x: $y /}");
  }

  private void visitRenderUnitNode(
      RenderUnitNode node, String nodeName, String selfClosingExample) {
    final AutoescapeMode oldMode = autoescapeMode;
    if (node.getContentKind() != null) {
      if (!isCurrTemplateContextuallyAutoescaped()) {
        throw SoyAutoescapeException.createWithNode(
            "{" + nodeName + "} node with 'kind' attribute is only permitted in contextually " +
                "autoescaped templates: " + node.toSourceString(),
View Full Code Here

TOP

Related Classes of com.google.template.soy.soytree.AutoescapeMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.