You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested functionality:
Extend TemplateMark so that more complex conditional statements can be used in a bidirectional way. That is, so that users can draft and parse with greater flexibility. This could be done by allowing switch statements.
Switch statements
For example, in JavaScript a switch statement is written as:
switch(colourVariable){
case "yellow":
...
break
case "red":
...
break
case "blue":
...
break
default:
...
break
}
Maybe this could be written as: {{#switch colourVariable}}{{#case yellow}} ... {{#case red}} ... {{#case blue }} ... {{#default}} ... {{/switch}}
The text was updated successfully, but these errors were encountered:
This issue extends #588.
Requested functionality:
Extend TemplateMark so that more complex conditional statements can be used in a bidirectional way. That is, so that users can draft and parse with greater flexibility. This could be done by allowing switch statements.
Switch statements
For example, in JavaScript a switch statement is written as:
Maybe this could be written as: {{#switch colourVariable}}{{#case yellow}} ... {{#case red}} ... {{#case blue }} ... {{#default}} ... {{/switch}}
The text was updated successfully, but these errors were encountered: