Module: CoreHelper

Includes:
Capture, HTML
Defined in:
lib/helpers/core_helper.rb

Defined Under Namespace

Modules: Capture, HTML

Instance Method Summary collapse

Methods included from Capture

#capture, #capture_block, #capture_erb, #capture_erb_with_buffer, #concat, #content_for

Methods included from HTML

#content_tag, #html_options_from_hash, #javascript_include_tag, #javascript_tag, #short_tag_names, #stylesheet_link_tag, #stylesheet_tag

Instance Method Details

#baseObject

Returns base URL



144
145
146
# File 'lib/helpers/core_helper.rb', line 144

def base
  Bones.base
end

#title(value = -1)) ⇒ Object

Simple helper for setting title Call from a page template with an argument to set the title; call from the layout with no argument to get the title



138
139
140
141
# File 'lib/helpers/core_helper.rb', line 138

def title(value=-1)
  return @content_for_title if value == -1
  @content_for_title = value
end