Template variables don't load in Sinatra/HAML

Having trouble seeing variables render in your HAML templates with Sinatra?

That's because the lightweight server doesn't reload your code.

I'm using Shotgun to achieve this, reloading code on every request. Only for development mind.

$ sudo gem install shotgun$ shotgun -p 4567 sinatra_app.rb

Thanks

Posted by Effisfor 

0 comments

Leave a comment...