This file is indexed.

/usr/share/doc/ruby-sinatra-simple-navigation/README.textile is in ruby-sinatra-simple-navigation 3.6.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
h1. sinatra-simple-navigation

sinatra-simple-navigation is a sinatra extension enabling the use of the "simple-navigation":http://github.com/andi/simple-navigation gem in your sinatra and padrino applications.

h2. Installation

Either manually install the gem

@gem install sinatra-simple-navigation@

or preferably use bundler and add it to your Gemfile

@gem 'sinatra-simple-navigation'@

and run @bundle install@

h2. Usage

h3. Sinatra Applications

h4. Classic Style

To use simple-navigation in your classic style sinatra application, just require 'sinatra/simple-navigation':

<pre><code>require 'rubygems'
require 'sinatra'
require 'sinatra/simple-navigation'

# Your app code goes here</code></pre>

h4. Modular Style

If you're developing a module style sinatra application (i.e. subclassing Sinatra::Base), you have to register Sinatra::SimpleNavigation:

<pre><code>require 'rubygems'
require 'sinatra/base'
require 'sinatra/simple-navigation'

class MyApp < Sinatra::Base
  register Sinatra::SimpleNavigation
  
  # Your app code goes here
end</code></pre>

h3. Padrino Applications

Using simple-navigation in your padrino application is similar to the modular sinatra style. In your @app/app.rb@ file:

<pre><code>require 'sinatra/simple-navigation'

class MyApp < Padrino::Application
  register Sinatra::SimpleNavigation
  
  # Your app code goes here
end</code></pre>

Instead of requiring sinatra/simple-navigation at the top of the file, you could add this to your Gemfile:

@gem 'sinatra-simple-navigation', :require => 'sinatra/simple-navigation'@

h2. Resources

* simple-navigation source code: "http://github.com/andi/simple-navigation":http://github.com/andi/simple-navigation
* simple-navigation wiki: "http://wiki.github.com/andi/simple-navigation":http://wiki.github.com/andi/simple-navigation
* demo project with sample applications for rails, sinatra and padrino: "http://github.com/andi/simple-navigation-demo":http://github.com/andi/simple-navigation-demo

h2. Legal

Copyright (c) 2011 Andi Schacke, released under the MIT license