Home > page_title_helper

page_title_helper

Page_title_helper is a project mainly written in ..., based on the MIT license.

Very simple rails plugin to generate localized page titles.

h1. PageTitleHelper

PageTitleHelper is a very very simple helper which provides two helper methods for setting page titles. It supports localized titles.

h2. Example

In the view layout (e.g. @application.html.erb@ for instance):


    ...
    <%= site_title "MySite" %>
    ...

In a view, the title helper takes a parameter which can be either a String or a Symbol. In case of a Symbol, its value is sent first to @I18n.t@ to be translated. In all cases, the page title is added to the @@ tag after the site name. </p> <pre> <div id="content"> ... <%= title "Welcome !" %> ... </div> </pre> <p>h3. Installation</p> <pre> rails install git://github.com/clarif/page_title_helper.git </pre> <p>Copyright (c) 2011 Fabrice Clari, released under the MIT license</p> </div> </div> </div> <div class="col-sm-10 col-sm-offset-1" style="margin-top: 1px;"> <div class="listBlocks content_box"> <div class="pre_next_box"> <div class="pre_next"><div class="pre"><span>Previous:</span><a href="//osphub.com/scocss/" title="ScoCSS">ScoCSS</a></div><div class="next"><span>Next:</span><a href="//osphub.com/hstd/" title="hstd">hstd</a></div></div> </div> </div> </div> </div> <!-- <div class="simle_box300"></div> --> </div> </section> <div class="footer-wrapper"> <div class="footer"> <p class="text-center"> ©2024 OSPHUB.COM </p> </div> </div></body> </html>