Module: Sinatra::OrthorRequestHelpers
- Defined in:
- lib/sinatra/orthor.rb
Instance Method Summary collapse
Instance Method Details
#handle_request(resource) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/sinatra/orthor.rb', line 6 def handle_request(resource) headers['Cache-Control'] = "public, max-age=#{resource.cache_for}" @name = resource.name @meta_keywords = resource.keywords @meta_description = resource.description @orthor_feeds = resource.respond_to?(:feeds) ? resource.feeds : [] @orthor_page_title = resource.title end |