Module: Pagelime::Rails::ViewHelper

Defined in:
lib/pagelime/rails/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#cms_content(&block) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pagelime/rails/view_helper.rb', line 5

def cms_content(&block)
  
  # TODO: How to let pagelime-rack handle this?
  
  # the block contents loaded into a variable
  editable_content  = capture(&block)
  processed_html    = ::Pagelime.process_region(editable_content, request.path)
  
  # output the final content
  concat(processed_html)
  
end