• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use velocity with out template

 
Pattamuthu Aru
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to use velocity template with out using .vm file. Instead i should use string template. I think we have to use VelocityEngine.evaluate, how to use that. please help me
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The developer's guide has string examples:

http://velocity.apache.org/engine/devel/developer-guide.html#thevelocityhelperclass
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!