module MjmlPremailer::FindMjmlExecutable
Public Instance Methods
find_mjml_executable()
click to toggle source
# File lib/mjml-premailer/find_mjml_executable.rb, line 7 def find_mjml_executable local_path = File.expand_path("node_modules/.bin/mjml", Dir.pwd) return local_path if File.file?(local_path) find_executable("mjml") end