jamesarosen/xebec — Issue #6: Option to render the current item as a link
Author: nbudin
Created: 2011-10-12 19:00:27+00:00
State: open
Labels: feature

I've added an option to make the current nav bar item a link (rather than a span as usual). This is useful, for example, in sites where you want to show the same current tab for everything in a particular "section" of the site, but you'd like to be able to let users click the tab to get back to the front page of the section easily.

The way you use it is pretty simple:

```ruby
nav_bar :main_menu do |nb|
nb.nav_item :posts
nb.nav_item :users
nb.nav_item :comments

nb.render_current_as_link = true
end
```

Patch and tests are on the render_current_as_link branch. Let me know if you like it; if so, we can merge it to master and release a new version.