rex_mustache
Get render result by "Expression:Render". It has two input parameters -
- Template: a template string for rendering.
- View: variables in JSON string
In this sample capx,
- The template is "Hello, {{name}}"
- The view is {"name":"Construct2"}
Use built-in dictionary to store values
Sample capx
The 2nd parameter of "Expression:Render" could be ignored. In this case, this expression will use built-in 1d dictionary to pick the value.
Before rendering, user could set the built-in dictionary by these actions -
Sample capx
The 2nd parameter of "Expression:Render" could be ignored. In this case, this expression will use built-in 1d dictionary to pick the value.
Before rendering, user could set the built-in dictionary by these actions -
- Action:Clean
- Action:Set value
Official save/load
The built-in dictionary supports official save/load, or user could get this built-in dictionary by "Expression:VariablesAsJSON", then load it by "Action:Load from JSON"
The built-in dictionary supports official save/load, or user could get this built-in dictionary by "Expression:VariablesAsJSON", then load it by "Action:Load from JSON"
Set delimiters
Sample capx
Left and right delimiters could be changed. Set delimiters in properties "Left delimiter", "Right delimiter", or set by "Action:Set delimiters".
Sample capx
Left and right delimiters could be changed. Set delimiters in properties "Left delimiter", "Right delimiter", or set by "Action:Set delimiters".