Module: YouthTree::Helpers::AssetsHelper

Defined in:
lib/youth_tree/helpers/assets_helper.rb

Instance Method Summary collapse

Instance Method Details



10
11
12
# File 'lib/youth_tree/helpers/assets_helper.rb', line 10

def extra_footer_content(*args, &blk)
  content_for(:extra_footer, *args, &blk)
end

#extra_head_content(*args, &blk) ⇒ Object

Returns the content to be placed in the header.



6
7
8
# File 'lib/youth_tree/helpers/assets_helper.rb', line 6

def extra_head_content(*args, &blk)
  content_for(:extra_head, *args, &blk)
end

#has_css(*args) ⇒ Object

Equiv. to stylesheet_link_tag in the header



33
34
35
36
# File 'lib/youth_tree/helpers/assets_helper.rb', line 33

def has_css(*args)
  content_for :extra_head, stylesheet_link_tag(*args)
  nil
end

#has_jammit_css(*args) ⇒ Object

Equiv. to include_stylesheets in the header



21
22
23
24
# File 'lib/youth_tree/helpers/assets_helper.rb', line 21

def has_jammit_css(*args)
  content_for :extra_head, include_stylesheets(*args)
  nil
end

#has_jammit_js(*args) ⇒ Object

Equiv. to include_javascripts in the header



15
16
17
18
# File 'lib/youth_tree/helpers/assets_helper.rb', line 15

def has_jammit_js(*args)
  content_for :extra_footer, include_javascripts(*args)
  nil
end

#has_js(*args) ⇒ Object

Equiv. to javascript_include_tag in the header



27
28
29
30
# File 'lib/youth_tree/helpers/assets_helper.rb', line 27

def has_js(*args)
  content_for :extra_footer, javascript_include_tag(*args)
  nil
end