Sha256: aca74f2b5b795e0f9792701bccd1d3b0023ab21af8d2791c432df93efe96e8ec

Contents?: true

Size: 317 Bytes

Versions: 14

Compression:

Stored size: 317 Bytes

Contents

require "liquid"

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
html_email_creator-1.0.18 lib/html_email_creator/filters.rb
html_email_creator-1.0.16 lib/html_email_creator/filters.rb
html_email_creator-1.0.15 lib/html_email_creator/filters.rb
html_email_creator-1.0.14 lib/html_email_creator/filters.rb
html_email_creator-1.0.13 lib/html_email_creator/filters.rb
html_email_creator-1.0.10 lib/html_email_creator/filters.rb
html_email_creator-1.0.9 lib/html_email_creator/filters.rb
html_email_creator-1.0.8 lib/html_email_creator/filters.rb
html_email_creator-1.0.7 lib/html_email_creator/filters.rb
html_email_creator-1.0.6 lib/html_email_creator/filters.rb
html_email_creator-1.0.5 lib/html_email_creator/filters.rb
html_email_creator-1.0.4 lib/html_email_creator/filters.rb
html_email_creator-1.0.3 lib/html_email_creator/filters.rb
html_email_creator-1.0.2 lib/html_email_creator/filters.rb