I am just starting to learn building small web apps using Sinatra, HAML and Twitter Bootstrap.In my application, an action takes place every 500 seconds. I would like to place a progress bar on my page which indicates the time remaining until the next action takes places. Right now the bar should just update if the page is reloaded.I am calculating the progress of the bar like this:\[code\]-percentage = (Time.now.to_i.modulo(500))/5\[/code\]Right now, in my prototype HAML page layout, I have a progress bar like this:\[code\]%div.progress.progress-striped.active %div.bar{:style => "width: 40%;"}\[/code\]I am struggling to figure out the correct syntax to set the \[code\]width\[/code\] attribute of the progress bar to the previously calculated progress percentage.