Sha256: 21d5adcb635cfd4dd3050febc8435b695af98969084bc807e0d65b356bbdf046

Contents?: true

Size: 755 Bytes

Versions: 12

Compression:

Stored size: 755 Bytes

Contents

require 'tilt'
require 'padrino-core/support_lite'

Dir[File.dirname(__FILE__) + '/padrino-mailer/**/*.rb'].each { |file| require file }

module Padrino
  ##
  # This component uses an enhanced version of the excellent pony library (vendored) for a powerful but simple mailer 
  # system within Padrino (and Sinatra).
  # There is full support for using an html content type as well as for file attachments. 
  # The MailerPlugin has many similarities to ActionMailer but is much lighterweight and (arguably) easier to use.
  # 
  module Mailer
    ##
    # Used Padrino::Application for register Padrino::Mailer::Base::views_path
    # 
    def self.registered(app)
      Padrino::Mailer::Base::views_path = app.views
    end
  end # Mailer
end # Padrino

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
padrino-mailer-0.9.1 lib/padrino-mailer.rb
padrino-mailer-0.9.0 lib/padrino-mailer.rb
padrino-mailer-0.8.5 lib/padrino-mailer.rb
padrino-mailer-0.8.4 lib/padrino-mailer.rb
padrino-mailer-0.8.3 lib/padrino-mailer.rb
padrino-mailer-0.8.2 lib/padrino-mailer.rb
padrino-mailer-0.8.1 lib/padrino-mailer.rb
padrino-mailer-0.8.0 lib/padrino-mailer.rb
padrino-mailer-0.7.9 lib/padrino-mailer.rb
padrino-mailer-0.7.8 lib/padrino-mailer.rb
padrino-mailer-0.7.7 lib/padrino-mailer.rb
padrino-mailer-0.7.6 lib/padrino-mailer.rb