Permalink
Browse files

Wrap read template in :div

Closes #30
  • Loading branch information...
swlkr committed Sep 27, 2018
1 parent c8773ac commit 69b85f503f855753ffc03a6ea93256e3305870d6
Showing with 5 additions and 4 deletions.
  1. +2 −1 resources/generators/read.clj.txt
  2. +3 −3 src/coast/generators/action.clj
@@ -6,4 +6,5 @@
(q '[:select __qualified-keywords__
:where [:__resource__/id ?id]]
{:id id}))]
__dl-elements__))
[:div
__dl-elements__]))
@@ -50,8 +50,8 @@
(defn dl-element [k]
(str "[:dl
[:dt \""(name k)"\"]
[:dd (" (str k) " " (namespace k) ")]]"))
[:dt \""(name k)"\"]
[:dd (" (str k) " " (namespace k) ")]]"))
(defn table [ks]
(str "[:table
@@ -78,7 +78,7 @@
(fill {:qualified-keywords (string/join " " cols)
:form-elements (string/join "\n\n "
(map form-element cols))
:dl-elements (string/join "\n\n "
:dl-elements (string/join "\n\n "
(map dl-element cols))
:table (table cols)
:action action

0 comments on commit 69b85f5

Please sign in to comment.