Interface SafeMustacheTemplateFactory

All Known Implementing Classes:
DefaultSafeMustacheTemplateFactory

public interface SafeMustacheTemplateFactory
Factory that produces a SafeMustacheTemplate that can be used to substitute input values in an automation rule safely. Only methods annotated with InputSubstitutionSafe can be substituted.
  • Method Summary

    Modifier and Type
    Method
    Description
    compile(String template)
    Creates a SafeMustacheTemplate instance for the template provided that can be used to substitute rule component inputs safely.
  • Method Details

    • compile

      SafeMustacheTemplate compile(String template)
      Creates a SafeMustacheTemplate instance for the template provided that can be used to substitute rule component inputs safely.
      Parameters:
      template - The template string used to substitute inputs
      Returns:
      A safe input substitution that can be re-used.