I'm using this code for my navigation:
.row-fluid
.span3
.well
%ul.nav.nav-tabs.nav-stacked
%li.nav-header
Menu
%li
%a{:href => "/cms/1"} page1
%li
%a{:href => "/cms/2"} page2
%li
%a{:href => "/cms/3"} page3
%li
%a{:href => "/cms/4"} page4
if i put .active
after the %li
it makes the item active, how can i do this dynamically so it reflects which page is currently active? I have all the bootstrap javascript files installed.