Class TemplateUtils

java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.TemplateUtils

public class TemplateUtils extends Object
Utilities for Template manipulations.
  • Method Details

    • ensureValidOperators

      public static String ensureValidOperators(String template)
      Checks a stringified Nice2Template for escaped operators in freemarker expressions and corrects them. Example input: [#if true && true]true[#/if] Example output: [#if true && true]true[#/if]
      Parameters:
      template - the template to check
      Returns:
      the corrected template