VTL Rendering - rettersoft/rbs-docs GitHub Wiki

VTL Rendering

To render a VTL file you need to call rbs.vtl.request.RENDER.

Action data:

{
    "template": "vtl template string",
    "templateUrl": "some url containing a template file ready for vtl rendering",
    "context": {
         // Data needed for rendering
    }
}

Example with templateUrl

{
    "templateUrl": "https://temppinar.s3-eu-west-1.amazonaws.com/mesafeli.html",
    "context": {
         "name": "Jane Doe"
    }
}

Example with template string in request

{
    "template": "Hello $name",
    "context": {
         "name": "Jane Doe"
    }
}