Sha256: dc2ea2edbe960d3d6e78e1b715259ed338b62512d1bae6876c918bdaf3d608a0

Contents?: true

Size: 661 Bytes

Versions: 8

Compression:

Stored size: 661 Bytes

Contents

module Hippo
    module Templates
        class Mail < Liquid

            def to
                raise 'virtual method to called, this should be implemented by child class'
            end

            def subject
                raise 'virtual method subject called, this should be implemented by child class'
            end

            def pathname
                root_path.join('mail', filename)
            end

            def variables
                { 'product_name' => Hippo.config.product_name }
            end

            def self.create(*arg)
                Hippo::Mailer.from_template(self.new(*arg))
            end
        end
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 lib/hippo/templates/mail.rb
hippo-fw-0.9.8 lib/hippo/templates/mail.rb
hippo-fw-0.9.7 lib/hippo/templates/mail.rb
hippo-fw-0.9.6 lib/hippo/templates/mail.rb
hippo-fw-0.9.5 lib/hippo/templates/mail.rb
hippo-fw-0.9.4 lib/hippo/templates/mail.rb
hippo-fw-0.9.3 lib/hippo/templates/mail.rb
hippo-fw-0.9.2 lib/hippo/templates/mail.rb