Method: Mandrill::Templates#render
- Defined in:
- lib/mandrill/api.rb
#render(template_name, template_content, merge_vars = nil) ⇒ Hash
Inject content and optionally merge fields into a template, returning the HTML that results
215 216 217 218 |
# File 'lib/mandrill/api.rb', line 215 def render(template_name, template_content, merge_vars=nil) _params = {:template_name => template_name, :template_content => template_content, :merge_vars => merge_vars} return @master.call 'templates/render', _params end |