class Mjml::MrmlParser
Attributes
input[R]
Public Class Methods
new(input)
click to toggle source
Create new parser
@param input [String] The string to transform in html
# File lib/mjml/mrml_parser.rb, line 10 def initialize(input) @input = input end
Public Instance Methods
render()
click to toggle source
Render mjml template
@return [String]
# File lib/mjml/mrml_parser.rb, line 17 def render MRML.to_html(input) rescue NameError Mjml.logger.fatal('MRML is not installed. Please add `gem "mrml"` to your Gemfile.') raise rescue StandardError raise if Mjml.raise_render_exception '' end