Module: SinatraHelpers::Erb::Links
- Defined in:
- lib/sinatra_helpers/erb/links.rb
Constant Summary collapse
- SINATRA_HELPERS_LINKS_TMP_FILE =
File.('./tmp/.sinatra_helpers_links')
Class Method Summary collapse
Instance Method Summary collapse
- #sinatra_helpers_javascript_include_tag(*args) ⇒ Object
- #sinatra_helpers_stylesheet_link_tag(*args) ⇒ Object
Class Method Details
.registered(app) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/sinatra_helpers/erb/links.rb', line 14 def registered(app) app.send(:alias_method, :useful_stylesheet_link_tag, :stylesheet_link_tag) app.send(:alias_method, :stylesheet_link_tag, :sinatra_helpers_stylesheet_link_tag) app.send(:alias_method, :useful_javascript_include_tag, :javascript_include_tag) app.send(:alias_method, :javascript_include_tag, :sinatra_helpers_javascript_include_tag) end |
Instance Method Details
#sinatra_helpers_javascript_include_tag(*args) ⇒ Object
28 29 30 |
# File 'lib/sinatra_helpers/erb/links.rb', line 28 def sinatra_helpers_javascript_include_tag(*args) useful_javascript_include_tag(sinatra_helpers_links_args(args)) end |
#sinatra_helpers_stylesheet_link_tag(*args) ⇒ Object
24 25 26 |
# File 'lib/sinatra_helpers/erb/links.rb', line 24 def sinatra_helpers_stylesheet_link_tag(*args) useful_stylesheet_link_tag(sinatra_helpers_links_args(args)) end |