Comment
Comment by wolfgang42
I think what you want is to just make a function and pass it the values:
(Tagged templates won’t help here because the bit in curly braces is an expression which is evaluated to a value first; you’d need some kind of macro system to get access to the original variable name at runtime.)