Eugen C. wrote in post #999234:
(drop ‘:’ operator, it is not necessary).
According to the Sinatra docs, it must be a symbol. So I would just use
Or if you must do things the hard way, you can use the much uglier:
Note that when you use string interpolation, you create only one string.
However, when you use this construct:
First, you create the string ‘templates/’ and then the string ‘/layout’,
and then you concatenate them with the style variable, to create a third
string. Therefore, you should prefer string interpolation over string