Class: Sprockets::MJML

Inherits:
Object
  • Object
show all
Defined in:
lib/sprockets/mjml.rb

Overview

MJML interface for Sprockets

Class Method Summary collapse

Class Method Details

.call(input) ⇒ Object



8
9
10
# File 'lib/sprockets/mjml.rb', line 8

def self.call(input)
  input.merge(data: ::MJML::Parser.new.call(input[:data]))
end