I'm pretty new to ruby, but I'm even less familiar with LESS. Please, if you could, explain this as plain and simple as possible, because neither the documentation nor scattered blog entries have helped me in any way.
I'm using sinatra and I've got a file named main.less in my views folder. In my layout.haml a non-existent main.css is referenced. More exactly: /stylesheets/main.css. So I want to parse main.less using the less gem. I think I need to do something like this:
get '/stylesheets/main.css' do
less ...
end
But I really can't figure out the exact code. Any hints or ideas?