Package org.yamcs.templating
Class TemplateProcessor
java.lang.Object
org.yamcs.templating.TemplateProcessor
Processes a template source. Supported features:
{{ var }}
references are substituted with the provided args.{{ var | escape }}
a value is filtered through an 'escape' filter.{% if var %} ... {% else %} ... {% endif %}
blocks are only included if the provided var is set.{% comment %} ... {% endcomment %}
blocks are discarded.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TemplateProcessor
- Throws:
ParseException
-
-
Method Details
-
process
- Throws:
ParseException
-
addFilter
-
process
-