Sha256: 911cbc044517a1534b96e784b30415c4142009c0368e9e2f5a6f9b578871e874

Contents?: true

Size: 689 Bytes

Versions: 4

Compression:

Stored size: 689 Bytes

Contents

:ruby
  Kin::Nav.setup(:test) do |nav|
    nav.add(:home, 'Home').url('/myurl')

    # Non-matches.
    nav.add(:invalid_controller, 'Invalid').active_on('no/*')
    nav.add(:invalid_specific, 'Specific').active_on('nav_specs/no_specific_active')

    # Matches.
    nav.add(:generic, 'Generic').active_on('*/*')
    nav.add(:controller, 'Controller').active_on('nav_specs/*')
    nav.add(:specific, 'Specific').active_on('nav_specs/specific_active')
    nav.add(:glob, 'Glob').active_on('nav_specs/{glob_active,another_active}')

    # Non-matching generic - a generic is already defined above.
    nav.add(:invalid_generic, 'Generic').active_on('*/*')
  end

= display_navigation(:test)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
antw-kin-0.3.2 spec/fixture/app/views/nav_specs/active.html.haml
antw-kin-0.3.3 spec/fixture/app/views/nav_specs/active.html.haml
antw-kin-0.4.0 spec/fixture/app/views/nav_specs/active.html.haml
antw-kin-0.4.1 spec/fixture/app/views/nav_specs/active.html.haml