The OneCloud Handlebars BizApp allows any type of script or configuration file to be dynamically updated with replacement variable(s). The values replaced can be any OneCloud variable type or any other string of characters. This is a powerful capability since anywhere hardcoded values are used, they can be replaced with a variable using the convention {{MY-VARIABLE}}. Note that the variable name must be a continuous string of characters.

What is Handlebars?

Handlebars is a templating language that allows for powerful variable replacement as well as looping functionality primarily to build dynamic HTML. That being noted, it can be used in variety of other creative ways.

Example Script:

Chain Environment: {{Chain-Env}} 
Chain Execution Time: {{Chain-Exec-Time}}

Handlebars Configuration:

Handlebars Output:

Note that the output of this command can be used in subsequent OneCloud commands such as a Script Runner.

As always, we welcome questions on this post, please feel free to contact us at support@onecloud.io.

Did this answer your question?