Module: Sinatra::TagHelpers

Defined in:
lib/sinatra/tag-helpers.rb,
lib/sinatra/tag-helpers/version.rb

Defined Under Namespace

Modules: HelperMethods

Constant Summary collapse

VERSION =
"0.0.12"

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object

settings and such



221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# File 'lib/sinatra/tag-helpers.rb', line 221

def self.registered(app)
  app.helpers TagHelpers::HelperMethods

  app.set :link_to_current_class, 'current'
  app.set :years_range, 1940..Date.today.year
  app.set :months_hash, {
    'Month' => '',
    '1 - January'   => '01',
    '2 - February'  => '02',
    '3 - March'     => '03',
    '4 - April'     => '04',
    '5 - May'       => '05',
    '6 - June'      => '06',
    '7 - July'      => '07',
    '8 - August'    => '08',
    '9 - September' => '09',
    '10 - October'  => '10',
    '11 - November' => '11',
    '12 - December' => '12'
  }
end