<commit_before># TopHat [![Build Status](https://secure.travis-ci.org/spagalloco/tophat.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/spagalloco/tophat.png?travis)][gemnasium] [![Code Climate](https://codeclimate.com/github/spagalloco/tophat.png)][codeclimate]


[travis]: http://travis-ci.org/spagalloco/tophat
[gemnasium]: https://gemnasium.com/spagalloco/tophat
[codeclimate]: https://codeclimate.com/github/spagalloco/tophat

TopHat is a set of view helpers to keep your layouts and views DRY.  Easily include meta tags like keywords and descriptions, Open Graph and Twitter Cards in your Rails views.

## Installation

Just add it to your Gemfile:

    gem 'tophat'

Note: TopHat is Rails 3.0+ compatible.

## Changes in 2.1

TopHat version < 2.1 aliased the `title` as `t` and conflicted with an existing Rails helper used for i18n translation.  Version 2.1 removes this alias.  If you were using `t` as part of TopHat previously, you will need to change your code to use TopHat's `title` helper instead.

## Layout Usage
<commit_msg>reword compatability statement [ci skip]<commit_after># TopHat [![Build Status](https://secure.travis-ci.org/spagalloco/tophat.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/spagalloco/tophat.png?travis)][gemnasium] [![Code Climate](https://codeclimate.com/github/spagalloco/tophat.png)][codeclimate]


[travis]: http://travis-ci.org/spagalloco/tophat
[gemnasium]: https://gemnasium.com/spagalloco/tophat
[codeclimate]: https://codeclimate.com/github/spagalloco/tophat

TopHat is a set of view helpers to keep your layouts and views DRY.  Easily include meta tags like keywords and descriptions, Open Graph and Twitter Cards in your Rails views.

## Installation

Just add it to your Gemfile:

    gem 'tophat'

Note: TopHat is compatible with Rails 3.0+.

## Changes in 2.1

TopHat version < 2.1 aliased the `title` as `t` and conflicted with an existing Rails helper used for i18n translation.  Version 2.1 removes this alias.  If you were using `t` as part of TopHat previously, you will need to change your code to use TopHat's `title` helper instead.

## Layout Usage

{'fraction_non_alphanumeric': 0.11182994454713494, 'fraction_numerical': 0.009242144177449169, 'mean_word_length': 4.883152173913044, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '156330', 'n_tokens_mistral': 747, 'n_tokens_neox': 717, 'n_words': 229}