hanami / mailer

Mail for Ruby applications

Home Page:http://hanamirb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multipart rendering

jodosha opened this issue · comments

Lotus::Mailer must carry on an instance method that renders a single template.

module Lotus
  module Mailer
    def render(format)
      # ...
    end
  end
end

Using the template informations (#2 ) that we have, it must render that template.

Template Engines

Like we do with Lotus::View, we want to be able to support a variety of template engines via tilt gem.
Tilt is able to determine the engine, by looking at the last extension that we have in a template. Eg. .erb, will be rendered with ERB. Please have a look at Tilt docs.