Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Velocity Methods

Velocity Methods are one-liners for parsing velocity templates. To view the javadocs go here

These are the different ways of using the Velocity methods:

Using Gloovy Step velocity method using gloovy step

Using Invoke Step velocity method using invoke step

Using Gloovy velocity method using gloovy step on coder

Using Invoke Step velocity method using invoke step on coder

1
2
3
4
5
//Creates a map for the personCtx
def personCtx = [ "firstName" : "Jon", "lastName": "Snow" ]

//Parses the velocity template assigning values for $firstName and $lastName
'You know nothing $firstName $lastName!'.parse( personCtx )