Class TemplateUtils
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.TemplateUtils
Utilities for
Template manipulations.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringensureValidOperators(String template) Checks a stringifiedNice2Templatefor escaped operators in freemarker expressions and corrects them.
-
Method Details
-
ensureValidOperators
Checks a stringifiedNice2Templatefor 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
-