当前位置:网站首页>How to use strings as speed templates- How to use String as Velocity Template?

How to use strings as speed templates- How to use String as Velocity Template?

2022-07-07 01:52:00 Rich in starch

problem :

What is the best way to create Velocity Template from a String? What is the best way to create a speed template from a string ?

I'm aware of Velocity.evaluate method where I can pass String or StringReader, but I'm curios is there a better way to do it (eg any advantage of creating an instance of Template). That's true. Velocity.evaluate Method , I can pass it on String or StringReader, But I'm curious if there is a better way to do this ( for example , Any advantages of creating template instances ).


Solution :

Reference resources : https://stackoom.com/en/question/60eK
原网站

版权声明
本文为[Rich in starch]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130917351201.html