Module: Titleist

Extended by:
ActiveSupport::Autoload
Defined in:
lib/titleist.rb,
lib/titleist/title.rb,
lib/titleist/engine.rb,
lib/titleist/version.rb

Overview

Serves standardized titles throughout your Rails application, leveraging I18n locale configuration and view helpers to make defining and presenting titles in any way you see fit as simple as possible.

Examples:

Setting a title

en:
  titles:
    application: My App
    format: '%{app} | %{page}'
    pages:
      index: Home
    posts:
      index: All Posts
      show: "Post %{name}"
      new: New Post

Rendering the current title

= title_tag

Defined Under Namespace

Classes: Engine, Title

Constant Summary collapse

VERSION =
'0.1.1'.freeze