module PagelimeHelper

Public Instance Methods

cms_content(&block) click to toggle source
# File lib/app/helpers/pagelime_helper.rb, line 9
def cms_content(&block)
  # the block contents loaded into a variable
  input_content = capture(&block)
  page_path = request.path
  html = cms_process_html_block(page_path,input_content)
  # output the final content
  concat(html)
  # raw capture(&block) + "<div>hello world</div>"
  # raw "BLA!";
end