StringTemplate list of attributes defined for a given template

前端 未结 2 783
误落风尘
误落风尘 2020-12-18 07:19

I am getting started with StringTemplate 4 and I am trying to create a template from a simple string stored in a database. I use something like this:

STGroup         


        
2条回答
  •  失恋的感觉
    2020-12-18 07:52

    You can use st.impl.formalArguments to access the Map where the arguments are defined. Note that for some templates this field will be null.

提交回复
热议问题