Questions tagged [velocity-template-language]

Velocity Template Language - VTL

Apache Velocity first released in April 2001, is a Java-based template engine that provides a template language VTL to reference objects defined in Java code. It aims to ensure clean separation between the presentation tier and business tiers in a Web application (the model–view–controller design pattern).

It includes Variables, Properties, Methods, Directives, Macros, and more...

Official documentation.

33 questions
0
votes
0 answers

convert array to JSON Objects in velocity template

Hi i am trying to get array of Objects with question and answer pairs as shown in expected output. Here odd position will be questions and even positions will be answers. i have a below code public static void main(String args[]) throws…
daisy
  • 357
  • 3
  • 7
  • 22
0
votes
1 answer

AWS velocity template - How to discern between string or other

In Amazon API gateway I'm using a body mapping template to transform the request. I found that keeping track of the commas was cumbersome (especially with multiple optional parameters) so I came up with the following: { "context": { /* context…
ediblecode
  • 11,701
  • 19
  • 68
  • 116
0
votes
1 answer

Telligent 10 - Velocity Template - get current datetime

Using Telligent 10 platform and their native Velocity Template Language, how can we simply get the current datetime? Per the many examples I've seen here on SO these first two require the $date var previously defined and those examples all define…
id.ot
  • 3,071
  • 1
  • 32
  • 47
1 2
3