More About SyntaxΒΆ
The plasmic Python-like language contains almost no expression
evaluation. The single, optional, expression allowed is a
string.Formmatter.format()
formatting syntax used for
interpolation – the insertion of of data into values by reference to
Plasmic dictionary keys.
As a convenience all dictionary entries keyed by symbols have their keys converted to the lower case string equivalent. The following 2 examples are equivalent:
Note
The following is here only as an example. It is bad practice in Plasmic to write symbols containing upper case letters.
A configuration with symbols for keys:
{section1:
{key1: "value1",
key2: 2},
Section2:
{Key1: "othervalue",
KEY3: 3.0}
}
The identical configuration with strings for keys:
{"section1":
{"key1": "value1",
"key2": 2},
"section2":
{"key1": "othervalue",
"key3": 3.0}
}
Although the symbols are written in mixed case the end result is a dictionary keyed with strings in lower case.