Freya

A minimal email link generator

Installation

Add this line to your application's Gemfile:

gem 'freya'

And then execute:

$ bundle

Or install it yourself as:

$ gem install freya

Usage

Create a yml file containing the bodies of your emails.

test:
    email: This is a test email

Then you create a link to this email like this:

mail_to Freya::Email.new(name:'test email', to: '[email protected]', subject: 'test_subject).link, 'Email'

You can access mail bodies using the name attribute separating nodes with white spaces.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request