Module: CmsCustomHelper

Defined in:
app/helpers/cms_custom_helper.rb

Instance Method Summary collapse

Instance Method Details

#substitute_placeholders_custom(temp, _page) ⇒ Object

override this method to do your own custom subtitutions



3
4
5
6
7
8
9
10
11
12
# File 'app/helpers/cms_custom_helper.rb', line 3

def substitute_placeholders_custom(temp, _page)
  # an example:
  # begin
  #   temp.gsub!(/<#\s*upcoming_event_date\s*#>/, page.article_date.strftime("<span class=\"month\">%b</span><span class=\"day\">%d</span>"))
  # rescue
  # end

  # remember to return your modified copy of temp
  temp
end