Sha256: df78e94413173d5989971bf8f2d77d95ea97926bbc8d7463f7bec0b56699ef2c
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
module Roadie class CSSFileNotFound < StandardError; end def self.inline_css(*args); Roadie::Inliner.new(*args).execute end def self.load_css(root, targets) loaded_css = [] stylesheets = root.join('public', 'stylesheets') targets.map { |target| stylesheets.join("#{target}.css") }.each do |target_file| if target_file.exist? loaded_css << target_file.read else raise CSSFileNotFound, "Could not find #{target_file}" end end loaded_css.join("\n") end end require 'roadie/version' require 'roadie/inliner' require 'action_mailer' require 'roadie/action_mailer_extensions' ActionMailer::Base.send :include, Roadie::ActionMailerExtensions
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roadie-1.0.0.pre2 | lib/roadie.rb |