Sinatra, SimpleNavigation and Bootstrap
After getting a handle on it, I was really surprised that Twitter’s excellent Bootstrap UI framework
didn’t have functionality to cover tabs on other pages of the site. Much like the slick ScrollSpy, where various menu items are highlighted when you scroll to their div id on the page, I was expecting a “PageSpy” type functionality to do the same with navigation tabs, and set a tab to active if the target url matched the URL the browser was on (especially since bootstrap does the more difficult in-page tab functionality. In fact, I was so surprised, I actually asked around and took a look at the js source code as I thought I was missing something obvious.