method
register_template_extension
v2.1.0 -
Show latest stable
- Class:
ActionMailer::Base
register_template_extension(extension)public
Register a template extension so mailer templates written in a templating language other than rhtml or rxml are supported. To use this, include in your template-language plugin's init code or on a per-application basis, this can be invoked from config/environment.rb:
ActionMailer::Base.register_template_extension('haml')