Freemarker - Include Multiple templates inside config file

后端 未结 1 1390
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 19:22

How can i include more than one template in Freemarker configuration file using Smooks?



        
相关标签:
1条回答
  • 2021-01-27 19:47

    If you look at example you will see that each ftl:template tag should be inside ftl:freemarker tag. in your case:

    <ftl:freemarker applyOnElement="Response">
      <ftl:template>template1.ftl</ftl:template>
    </ftl:freemarker>
    <ftl:freemarker applyOnElement="Response">
      <ftl:template>template2.ftl</ftl:template>
    </ftl:freemarker>
    
    0 讨论(0)
提交回复
热议问题