Skip to content

Commit

Permalink
Allow for multiple keyword filters in for tag (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
muakasan authored and yogthos committed Jul 14, 2017
1 parent c792771 commit bf92821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/selmer/tags.clj
Expand Up @@ -30,7 +30,10 @@

(defn apply-filters [item filters context-map items]
(reduce
(fn [value filter] (filter (assoc context-map items value)))
(fn [value filter]
(filter (assoc context-map
(keyword items) value
(name items) value)))
item filters))

(defn for-handler [args tag-content render rdr]
Expand Down

0 comments on commit bf92821

Please sign in to comment.