Base64
The base64
resolver encodes the value as a Base64 string:
{base64:foo}
renders Zm9v
Note that the template engine itself is recursive so template expressions can be evaluated:
// dev_installation_data.json
{
"app_Id": "sample-application",
"integration_api_code": "sample-server",
"client_id": "example-client-id",
"client_secret": "example-client-id"
}
-
template expression:
{base64:{installation:client_secret}}
-
rendering pass 1:
{base64:example-client-id}
-
rendering pass 2:
e2Jhc2U2NDpleGFtcGxlLWNsaWVudC1pZH0=