Hi there,

I have a question regarding variables inside of erb arguments. This is
what I would like to achieve:




require 'sinatra'

get '/' do
     style = 'default'
     erb :'templates/'+style+'/layout'
end




Running that will give you errors, saying there can't be a plus sign for
the concatenation.

Is there a way to work around this?

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