codeplant / simple-navigation

A ruby gem for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. Render your navigation as html list, link list or breadcrumbs.
http://simple-navigation-demo.codeplant.ch/
MIT License
885 stars 136 forks source link

Item name should accept block #165

Closed Danielpk closed 10 years ago

Danielpk commented 10 years ago

This is a suggestion to enable Simple Navigation render the name as block.

Something like this: primary.item :profile, -> { "#{current_user.name} Profile" } , user_profile Let me know if need any improvements.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.0%) when pulling 159177e4756f3cc7ec6c8ea38c3e4f01b90b3e27 on Danielpk:name-as-block into 8669c5e98a7ddb5bb237894e3a6ac8b4da7beee2 on codeplant:master.

simonc commented 10 years ago

Thank you :)

Danielpk commented 10 years ago

Np :+1: