Eugen Ciur 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 string interpolation:

  erb :"templates/#{style}/layout"

-- 
Posted via http://www.ruby-forum.com/.