render csrf token meta tag in page html

This commit is contained in:
Gered 2016-06-29 18:07:43 -04:00
parent e4a8c85e1a
commit 2676de8c74

View file

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