render csrf token meta tag in page html
This commit is contained in:
parent
e4a8c85e1a
commit
2676de8c74
|
@ -2,6 +2,7 @@
|
||||||
(:require
|
(:require
|
||||||
[clojure.string :as string]
|
[clojure.string :as string]
|
||||||
[compojure.core :refer [routes GET POST]]
|
[compojure.core :refer [routes GET POST]]
|
||||||
|
[ring.util.anti-forgery :refer [anti-forgery-field]]
|
||||||
[hiccup.page :refer [include-css include-js]]
|
[hiccup.page :refer [include-css include-js]]
|
||||||
[hiccup.element :refer [javascript-tag]]
|
[hiccup.element :refer [javascript-tag]]
|
||||||
[webtools.page :refer [html5 js-env-settings]]
|
[webtools.page :refer [html5 js-env-settings]]
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
(html5
|
(html5
|
||||||
[:head
|
[:head
|
||||||
[:title "MTG Web Collection"]
|
[:title "MTG Web Collection"]
|
||||||
|
(anti-forgery-field)
|
||||||
(include-bootstrap-metatags)
|
(include-bootstrap-metatags)
|
||||||
(include-bootstrap-css true)
|
(include-bootstrap-css true)
|
||||||
(include-css "css/app.css")]
|
(include-css "css/app.css")]
|
||||||
|
@ -25,9 +27,9 @@
|
||||||
[:div#footer
|
[:div#footer
|
||||||
[:div.container-fluid
|
[:div.container-fluid
|
||||||
[:div.content.text-center.text-muted
|
[:div.content.text-center.text-muted
|
||||||
"mtgcoll " (get-app-version) " | "
|
"mtgcoll " (get-app-version)
|
||||||
[:a {:href "https://github.com/gered/mtgcoll"} "Source code"] " licensed under MIT."]
|
" | "
|
||||||
]]
|
[:a {:href "https://github.com/gered/mtgcoll"} "Source code"] " licensed under MIT"]]]
|
||||||
(js-env-settings "" (boolean (config/get :dev?)))
|
(js-env-settings "" (boolean (config/get :dev?)))
|
||||||
(include-js "cljs/app.js")]))
|
(include-js "cljs/app.js")]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue