SynchroLabs / SynchroServer

The Synchro Server platform
https://synchro.io
1 stars 2 forks source link

Token formatting doesn't have an escaping mechanism #32

Closed BobDickinson closed 9 years ago

BobDickinson commented 9 years ago

There is currently no way to have a "{" in a literal string value that gets tokenized (which is almost every attribute of almost every view element). So for example, if you wanted a text control with a literal string value containing "{", you could not currently do that directly (you could do it if the attribute value was itself a token and the resolved token had a "{" in it, but that's a long way around this).

BobDickinson commented 9 years ago

You can now escape a brace (or braces) by doubling them up, for example: "We do {{braces}} like this" will result in the formatted string: "We do {braces} like this".