Templating & Interpolation
Last updated
Last updated
Don't be scared by these big words. This section helps you use the values a user has selected in your form elements. It is based on Vue.js.
Fig uses Mustache Syntax to access the currently selected value of a form element. You identify a form element by its identifier. The identifier is the first string in the square brackets.
How does Fig Render this?
Mustache braces allow you to access your element's output and use simple javascript expressions. Here is a list of some more expressions you can use.
To include additional information add a code block with the language set as data
. The contents of this tag will be interpreted as a JSON object and will be accessible in template tags.