How to get a list of available variables from a StringTemplate

I would like to get a list of variables from a template to request them from a user interface application.

Say I have a template like

This is some template called $templateName$ with the description $templateDescription$ 

I was wondering if there is a way to get a list of available variables / parameters, in this case:

  • TemplateName
  • templateDescription

In a list or array

+4
source share

Source: https://habr.com/ru/post/1482190/


All Articles