Interface TemplateEngine


public interface TemplateEngine
Interface for template rendering engines.

Implementations can use different template syntaxes like Mustache, StringTemplate, or simple variable substitution.

  • Method Details

    • render

      String render(String template, Map<String,Object> variables)
      Renders a template with the given variables.
      Parameters:
      template - the template content
      variables - the variables to substitute
      Returns:
      rendered string
    • extractVariables

      Set<String> extractVariables(String template)
      Extracts variable names from a template.
      Parameters:
      template - the template content
      Returns:
      set of variable names
    • getName

      String getName()
      Gets the engine name.
      Returns:
      engine name