<commit_before>Smart Titles for Rails
===
Provides really convenient way to set up page titles in Rails application.

To specify the page title just add the following line to your view:

    <%= title "Smart Title" %>

This will set up the page title for a browser window and also return the title in `<h1>` tag.
If you don't want to display it inside the page simply remove an equality sign:

    <% title "Title for a browser window" %>
    <h1>Different title for the page</h1>

This gem is under development and [therefore](http://semver.org/) API can change between minor versions until the 1.0.0.
It works only with Rails 3.1.

Installation
---
Add this line to your Gemfile:

    gem 'smart_titles', '~> 0.3.0'

And run:

    bundle install

Integration
---
You have to insert the following code inside the `<title>` tag in your layout:

    <title><%= head_title "Default title" %></title>

The default title is displayed only if you haven't specified title in your view.

With Internationalization
---
If you are using I18n in your Rails application static titles are specified in the locale file:<commit_msg>Works with 3.2 too<commit_after>Smart Titles for Rails
===
Provides really convenient way to set up page titles in Rails application.

To specify the page title just add the following line to your view:

    <%= title "Smart Title" %>

This will set up the page title for a browser window and also return the title in `<h1>` tag.
If you don't want to display it inside the page simply remove an equality sign:

    <% title "Title for a browser window" %>
    <h1>Different title for the page</h1>

This gem is under development and [therefore](http://semver.org/) API can change between minor versions until the 1.0.0.
It works only with Rails 3.1 and higher.

Installation
---
Add this line to your Gemfile:

    gem 'smart_titles', '~> 0.3.0'

And run:

    bundle install

Integration
---
You have to insert the following code inside the `<title>` tag in your layout:

    <title><%= head_title "Default title" %></title>

The default title is displayed only if you haven't specified title in your view.

With Internationalization
---
If you are using I18n in your Rails application static titles are specified in the locale file:
{'fraction_non_alphanumeric': 0.07770870337477798, 'fraction_numerical': 0.012433392539964476, 'mean_word_length': 3.7035490605427976, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '7672053', 'n_tokens_mistral': 660, 'n_tokens_neox': 605, 'n_words': 336}