Module: Roda::RodaPlugins::ExceptionPage::RequestMethods
- Defined in:
- lib/roda/plugins/exception_page.rb
Instance Method Summary collapse
-
#exception_page_assets ⇒ Object
Serve exception page assets.
Instance Method Details
#exception_page_assets ⇒ Object
Serve exception page assets
430 431 432 433 434 435 436 437 438 439 |
# File 'lib/roda/plugins/exception_page.rb', line 430 def exception_page_assets get 'exception_page.css' do response[RodaResponseHeaders::CONTENT_TYPE] = "text/css" scope.exception_page_css end get 'exception_page.js' do response[RodaResponseHeaders::CONTENT_TYPE] = "application/javascript" scope.exception_page_js end end |