Note
- Pebble syntaxes documented in this section are common between WhereScape products, but some syntaxes are unique to WhereScape 3D and WhereScape RED.
- It is advisable that you do not copy contents of a Pebble template from one WhereScape product to another.
Controls
Controls | Description | Example |
---|---|---|
| This is a tag for control flow. It should contain a tag and may be additional parameters, as shown in the example. | {% if ${condition} %} ${content} {% else %} ${content} {% endif %} |
| This is a tag for control flow. It should contain a tag and may be additional parameters, as shown in the example. If there is a - at the start or at the end, this will trim the leading or trailing whitespace respectively. | {%- if ${condition} -%} ${content} {%- else -%} ${content} {%- endif -%} |
| This tag is for expressions. It should contain an expression that will be outputted, as shown in the example. | {{ max(5, 3) }} |
| This tag is for expressions. It should contain an expression that will be outputted, as shown in the example. If there is a - at the start or at the end, this will trim the leading or trailing whitespace respectively. | {{- range(3, 6) -}} |
| This tag is for comments. | {# this is a comment. #} |
{#-...-#} | This tag is for comments. If there is a - at the start or at the end, this will trim the leading or trailing whitespace respectively. | {#- No whitespace on the left #} |