<commit_before>h2. 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
<commit_msg>. README<commit_after>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>

{'fraction_non_alphanumeric': 0.08029197080291971, 'fraction_numerical': 0.008110300081103, 'mean_word_length': 4.961352657004831, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '175582', 'n_tokens_mistral': 369, 'n_tokens_neox': 358, 'n_words': 132}