Module: HtmlEmailCreator::Filters

Defined in:
lib/html_email_creator/filters.rb

Instance Method Summary collapse

Instance Method Details

#download(input, text) ⇒ Object



9
10
11
# File 'lib/html_email_creator/filters.rb', line 9

def download(input, text)
  "<a href=\"#{HtmlEmailCreator.settings.cdn_url}/#{input}\">#{text}</a>"
end

#photo(input, alt) ⇒ Object



5
6
7
# File 'lib/html_email_creator/filters.rb', line 5

def photo(input, alt)
  "<img src=\"#{HtmlEmailCreator.settings.cdn_url}/#{input}\" alt=\"#{alt}\" border=\"0\" />"
end