Making name_generator also accept the item itself

To allow further customization, allowing a user to directly use the
item in a custom name_generator:

    navigation.name_generator = proc do |name, item|
      "<span>#{item.key}</span>"
    end