NFun icon indicating copy to clipboard operation
NFun copied to clipboard

Add MultipleStringTemplateCalculator to calculate several strings at once

Open tmteam opened this issue 3 years ago • 0 comments

For example we got some layout in some form

Dashboard text:  'Hello {name}. Current value is {x}'
Button1 text:  'Increase value to {x+1}'
Button2 text:  'Decrease value to {x-1}'

'x' - is shared variable among all three text expression.

It is equal to such nfun script:

d =  'Hello {name}. Current value is {x}'
b1 =  'Increase value to {x+1}'
b2 =  'Decrease value to {x-1}'

Current api does not allow us to share variable 'x' in such a way.

tmteam avatar Jan 15 '22 22:01 tmteam