Project

inky-rails

0.0
No commit activity in last 3 years
No release in over 3 years
Render Inky + ERb template views in Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Inky-Rails

Inky-Rails allows you to render HTML e-mails from an [Inky]https://github.com/zurb/inky) template.

An example template might look like:

<!-- TODO -->

And the partial _info.inky:

<!-- TODO -->
  • Notice you can use ERb and partials inside the template.

Your user_mailer.rb might look like this::

# ./app/mailers/user_mailer.rb
class UserMailer < ActionMailer::Base
  def user_signup_confirmation()
    mail(to: 'test@example.com', subject: 'test') do |format|
      format.text
      format.inky
    end
  end
end

Installation

Add it to your Gemfile.

gem 'inky-rails'

Run the following command to install it:

bundle install

Install the Inky CLI parser (optional -g to install it globally):

npm install -g inky-cli@^1.0

Bug reports

If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help us fixing the possible bug. We also encourage you to help even more by forking and sending us a pull request.

github.com/whitesmith/inky-rails/issues

License

MIT License. Copyright 2016 Whitesmith. whitesmith.co

Lovingly built on github.com/sighmon/mjml-rails which was previously based on github.com/plataformatec/markerb