Class TemplateProcessor

java.lang.Object
org.yamcs.templating.TemplateProcessor

public class TemplateProcessor extends Object
Processes a template source. Supported features:
  • {{ var }} references are substituted with the provided args.
  • {% if var %} ... {% else %} ... {% endif %} blocks are only included if the provided var is set.
  • {% comment %} ... {% endcomment %} blocks are discarded.