Packages

A wrapper for SendGrid's API to create composable emails.

Current section

Files

Jump to
noizu_sendgrid lib sendgrid templates template.ex
Raw

lib/sendgrid/templates/template.ex

defmodule SendGrid.Template do
def new(%{"generation" => "dynamic"} = json, :json) do
SendGrid.DynamicTemplate.new(json, :json)
end
def new(%{"generation" => "legacy"} = json, :json) do
SendGrid.LegacyTemplate.new(json, :json)
end
end