add :auto-convert-map-keywords option and apply to context maps
This commit is contained in:
parent
e58aa936cf
commit
e1812476f0
|
@ -57,7 +57,9 @@
|
|||
|
||||
(defn- prepare-context-map [context]
|
||||
(if context
|
||||
(if (:auto-convert-map-keywords @options)
|
||||
(stringify-keys context)
|
||||
context)
|
||||
{}))
|
||||
|
||||
(defn- render-template [^String template context]
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
(defonce options
|
||||
(atom
|
||||
{:cache true}))
|
||||
{:cache true
|
||||
:auto-convert-map-keywords true}))
|
Loading…
Reference in a new issue