Template Context
-
Templates gives you the flexibility to separate the commonly occurring data as static content and merge with variables to produce desired output during runtime.
-
Templates can be effectively used for
- Creating elastic search queries
- Inbuilt distributed database queries
- External RDBMS SQL queries
-
Context Variable: template
API Interface
//Define a template. See http://jtwig.org
public void define(String name, String code);
//Merge the supplied parameters with the template
public String merge(String name, Map<String, Object> params);
APIs Inherited From
See Also
Related API
Create / Update Template
Upload Template File
Get Template
Delete a Template
List Templates
Download Template File
Merge a Template
Merge a V2 Template
Upsert SQL Template
Get SQL Template
Delete SQL Template
Execute SQL Template
Execute Multiple SQL Templates
Upsert Database Template
Get Database Template
Delete Database Template
Execute Database Template
Updated 3 months ago