Skip to content

Commit

Permalink
Add prepend-attr transformation.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Nov 24, 2011
1 parent 3b7cfb8 commit 598d1e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framework/one.clj
Expand Up @@ -23,6 +23,9 @@
(defn append-attr [attr v] (defn append-attr [attr v]
#((set-attr attr (str (get-in % [:attrs attr] "") v)) %)) #((set-attr attr (str (get-in % [:attrs attr] "") v)) %))


(defn prepend-attr [attr v]
#((set-attr attr (str v (get-in % [:attrs attr] ""))) %))

;; scope access utility ;; scope access utility
(defn- scope-access [scope] (defn- scope-access [scope]
(fn (fn
Expand Down

0 comments on commit 598d1e8

Please sign in to comment.