github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/cmd/generate/generate_mailer.json (about)

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