Module: Grudge::Sinatra::Extensions
- Defined in:
- lib/grudge/extensions.rb
Instance Method Summary collapse
- #catch_all_css ⇒ Object
-
#get_obvious(name) ⇒ Object
When you don’t want to do anything special, but load.
Instance Method Details
#catch_all_css ⇒ Object
4 5 6 |
# File 'lib/grudge/extensions.rb', line 4 def catch_all_css get('/stylesheets/*.css') {sass params["splat"].first.to_sym} end |
#get_obvious(name) ⇒ Object
When you don’t want to do anything special, but load
9 10 11 12 13 14 |
# File 'lib/grudge/extensions.rb', line 9 def get_obvious(name) get "/#{name}" do title = name.to_s haml name.to_sym end end |