add :auto-convert-map-keywords option and apply to context maps

This commit is contained in:
Gered 2014-11-15 12:01:16 -05:00
parent e58aa936cf
commit e1812476f0
2 changed files with 5 additions and 2 deletions

View file

@ -57,7 +57,9 @@
(defn- prepare-context-map [context]
(if context
(stringify-keys context)
(if (:auto-convert-map-keywords @options)
(stringify-keys context)
context)
{}))
(defn- render-template [^String template context]

View file

@ -2,4 +2,5 @@
(defonce options
(atom
{:cache true}))
{:cache true
:auto-convert-map-keywords true}))