Static Vars

Added in V1

Static vars are pieces of a sample that can be replaced with a string while injecting them

Syntax

In the sample include ${} with the var name

<sample>
  <p>Static var example: ${Var}</p>
</sample>

And on the html include a var attribute

<element var="Var:Value"></element>

Each static var must follow the Key:Value syntax

This is how it would look with a inject:

<element var="Var:Value">
  <p>Static var example: Value</p>
</element>

For multiple vars separate each static var with ;

<element var="Var1:Value1;Var2:Value2"></element>

Updating vars

If changed via js you can use the SUpdate function to update the contents always that you use inject and not replace as replace will remove the parent element with the var

Last updated