LaserSrl / Laser.Orchard.Platform

Other
7 stars 7 forks source link

Syntax issue when chaining tokens #8

Open MatteoPiovanelli-Laser opened 4 years ago

MatteoPiovanelli-Laser commented 4 years ago

https://github.com/LaserSrl/Laser.Orchard.Platform/blob/b4e9f6f03577d6d6cb846acef590cb12bd4515c7/src/Modules/Laser.Orchard.StartupConfig/Tokens/ParameterToken.cs#L83

Example: {Content.Parameter:TitlePart-Title).Slug} This syntax is not very clear, because the parenthesis has not been opened in the token anywhere. Also, it may clash with some tokens that take their parameters in parenthesis.

I am not sure whether this issue is in every other definition of tokens. It may be worse if it isn't, because a fix would likely be breaking for existing configurations.