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.2.10 lib/caboodle/helpers.rb
caboodle-0.2.9 lib/caboodle/helpers.rb
caboodle-0.2.8 lib/caboodle/helpers.rb
caboodle-0.2.7 lib/caboodle/helpers.rb
caboodle-0.2.6 lib/caboodle/helpers.rb
caboodle-0.2.5 lib/caboodle/helpers.rb
caboodle-0.2.3 lib/caboodle/helpers.rb
caboodle-0.2.2 lib/caboodle/helpers.rb