Create Liquid Template
Create Liquid Templates
Follow the below steps to create a new liquid template:
- From the explorer menu, right-click Server (or) UI in Liquid Templates and select Add.
- In the properties panel, configure the properties as required and then click save.
| Property | Description | Comments |
|---|---|---|
| Name* | Provide the name of an exception. | Name must start with a character followed by alphanumeric or ''. No spaces are allowed. Except underscore (), no other special characters are allowed. Name cannot start with a number. |
| Template* | Provide the template. Click the builder icon and add the template in Liquid Template pop-up window. | Supported formats are HTML, JSON, XML, TEXT. |
| Description | Provide the summary. | - |
| Is Active | Specify whether the exception is active for accessing. Either Yes or No. | By default, it is set to Yes. |
note
An asterisk (*) denotes that the property is mandatory for creating a liquid template.
The "Liquid Template added successfully" message displays upon successful creation. Input Params folder is created by default.
Add Input Parameters
Users can add the parameters for a liquid template as applicable. To add, follow the below steps:
- Right-click the Input Params and select Add. A pop-up window displays.
- Configure the below properties as required and the click Save.
| Property | Description | Comments |
|---|---|---|
| Parameter Name* | Provide the name of a parameter. | Name must start with a character followed by alphanumeric or ''. No spaces are allowed. Except underscore (), no other special characters are allowed. Name cannot start with a number. |
| Is Array | Specify whether the parameter is an array or not. | By default, it is set to No. |
| Data Type* | Select the data type of the parameter from the drop-down. | - |
| Description | Provide a description for the parameter. |
note
An asterisk (*) denotes that the property is mandatory for creating a parameter.
The "Input Parameter added successfully" message displays upon successfully adding a parameter or variable.