I wrote a webform using Sinatra and Haml that will be used to call a Ruby script.
Everything seems fine except for one thing: I need to pass an argument to a Haml view f
I'm doing this in Sinatra+Markaby, I think it should be the same with Haml:
In Ruby script: @var = 'foo'
@var = 'foo'
In template: User name: #{@var}
User name: #{@var}