Module: Sinatra::Effigy

Defined in:
lib/sinatra/effigy.rb

Defined Under Namespace

Modules: Helpers

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/sinatra/effigy.rb', line 25

def self.registered(app)
  app.helpers Effigy::Helpers

  app.set :templates, 'templates'
  app.set :views,     'views'

  Dir["#{app.views}/*"].each { |view| require view }
end