Module: MJML
- Extended by:
- Dry::Configurable
- Defined in:
- lib/mjml.rb,
lib/mjml/parser.rb,
lib/mjml/railtie.rb,
lib/mjml/version.rb
Overview
MJML library for ruby
Defined Under Namespace
Constant Summary collapse
- MIME_TYPE =
Constants
'text/mjml'.freeze
- EXTENSION =
'.mjml'.freeze
- VERSION =
'0.1.0'.freeze
Class Method Summary collapse
Class Method Details
.find_executable ⇒ Object
20 21 22 23 24 |
# File 'lib/mjml.rb', line 20 def self.find_executable local_path = File.('node_modules/.bin/mjml', Dir.pwd) return local_path if File.file?(local_path) `/usr/bin/which mjml`.strip end |
.setup! ⇒ Object
13 14 15 16 17 18 |
# File 'lib/mjml.rb', line 13 def self.setup! # Init config configure do |config| config.bin_path = find_executable end end |