Sha256: aa81e9262ecc985735bccce93b3634f3319c31db26618609a686404836f9ed65

Contents?: true

Size: 370 Bytes

Versions: 28

Compression:

Stored size: 370 Bytes

Contents

module Sinatra
  module CaboodleHelpers
    
    def method_missing arg
      Caboodle::Layout[arg]
    end
    
    def title
      if request.path_info == "/"
        "#{Caboodle::Site.title} | #{Caboodle::Site.description}"
      else
        t = Caboodle::Site.title
        t = "#{@title} | #{t}" if @title
      end
    end
    
  end
  helpers CaboodleHelpers
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
caboodle-0.3.0 lib/caboodle/helpers.rb
caboodle-0.2.30 lib/caboodle/helpers.rb
caboodle-0.2.29 lib/caboodle/helpers.rb
caboodle-0.2.28 lib/caboodle/helpers.rb
caboodle-0.2.27 lib/caboodle/helpers.rb
caboodle-0.2.26 lib/caboodle/helpers.rb
caboodle-0.2.25 lib/caboodle/helpers.rb
caboodle-0.2.24 lib/caboodle/helpers.rb
caboodle-0.2.23 lib/caboodle/helpers.rb
caboodle-0.2.22 lib/caboodle/helpers.rb
caboodle-0.2.21 lib/caboodle/helpers.rb
caboodle-0.2.20 lib/caboodle/helpers.rb
caboodle-0.2.19 lib/caboodle/helpers.rb
caboodle-0.2.18 lib/caboodle/helpers.rb
caboodle-0.2.16 lib/caboodle/helpers.rb
caboodle-0.2.15 lib/caboodle/helpers.rb
caboodle-0.2.14 lib/caboodle/helpers.rb
caboodle-0.2.13 lib/caboodle/helpers.rb
caboodle-0.2.12 lib/caboodle/helpers.rb
caboodle-0.2.11 lib/caboodle/helpers.rb