Stringtemplate compare strings does not work

前端 未结 2 974
花落未央
花落未央 2021-01-19 02:13

Can someone explain why this does not work ?

StringTemplate query = new StringTemplate(\"hello \" +  
                \"$if(param==\\\"val1\\\")$\" +  
              


        
2条回答
  •  迷失自我
    2021-01-19 03:06

    ST doesn't allow computation in the templates. That would make it part of the model.

提交回复
热议问题