💄 Minor cosmetic changes.

This commit is contained in:
Andrey Antukh 2019-11-26 14:17:10 +01:00
parent d1b000dcc6
commit ba96edc620
3 changed files with 8 additions and 4 deletions

View file

@ -17,10 +17,14 @@
[uxbox.util.blob :as blob]
[uxbox.util.spec :as us]))
;; --- Defaults
(def default-context
{:static media/resolve-asset
:comment (constantly nil)})
;; --- Register Email
(s/def ::name ::us/string)
(s/def ::register
(s/keys :req-un [::name]))
@ -29,6 +33,8 @@
"A new profile registration welcome email."
(emails/build ::register default-context))
;; --- Public API
(defn render
[email context]
(let [defaults {:from (:email-from cfg/config)

View file

@ -6,10 +6,8 @@
(ns uxbox.http.handlers
(:require
[clojure.tools.logging :as log]
[promesa.core :as p]
[uxbox.emails :as emails]
[uxbox.http.errors :as errors]
[uxbox.http.session :as session]
[uxbox.services.core :as sv]
[uxbox.util.uuid :as uuid]))