Plugin : Mustache
Author:Rex.Rainbow
- Logic-less templates to render text content. Reference - https://github.com/janl/mustache.js
Download
Properties
Left delimiter
- Left delimiter. Set "" to use default delimiter "{{"
Right delimiter
- Right delimiter. Set "" to use default delimiter "}}"
Actions
Delimiters
Action:Set delimiters
- Set delimiters .
- Left delimiter ( string ) : Left delimiter. Set "" to use default delimiter "{{"
- Right delimiter ( string ) : Right delimiter. Set "" to use default delimiter "}}"
Variable
Action:Clean
Action:Set value
- Set variable value.
- Name ( number or string ) : Variable name.
- Value ( number or string ) : Variable value
Action:Load from JSON
- Load variables from JSON string.
- JSON string ( string ) : JSON string.
Expressions
Render
Expression:Render
- Get render result. Add 2nd parameter for view in JSON string.
- Template ( string ) : Template.
Variable
Expression:Value
- Get variable value. Add 2nd parameter for default value if this variable does not exist.
- Name ( number or string ) : Variable name.
Expression:VariablesAsJSON
- Get variables in JSON string.