github.com/jacobsoderblom/buffalo@v0.11.0/buffalo/cmd/filetests/generate_mailer.json (about)

     1  [{
     2      "path": "mailers/mailers.go",
     3      "contains": [
     4        "github.com/gobuffalo/buffalo/mail",
     5        "smtp, err = mail.NewSMTPSender(host, port, user, password)"
     6      ],
     7      "!contains": [
     8        "github.com/gobuffalo/x/mail"
     9      ]
    10    },
    11    {
    12      "path": "templates/mail/layout.html",
    13      "contains": [
    14        "<h1>templates/mailers/layout.html</h1>"
    15      ]
    16    },
    17    {
    18      "path": "mailers/welcome_email.go",
    19      "contains": [
    20        "err := m.AddBody(r.HTML(\"welcome_email.html\"), render.Data{})"
    21      ]
    22    },
    23    {
    24      "path": "templates/mail/welcome_email.html",
    25      "contains": [
    26        "<h2>Welcome Email</h2>",
    27        "<h3>../templates/mail/welcome_email.html</h3>"
    28      ]
    29    }
    30  ]