Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

started organizing transform.clj more

  • Loading branch information...
commit 6cd6578b872a4ae8b0064091d77762b9c010dfab 1 parent 598e769
@jeyoor authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/testify/process/transform.clj
View
7 src/testify/process/transform.clj
@@ -72,7 +72,8 @@
"take one user-script transformation statement and apply it to the given HTML nodes"
[nodes transform]
`(let [selector# (process-selector (first ~transform))
- funame# (process-fname (second ~transform))
+ funame# (second ~transform)
+ fusym# (process-fname (second ~transform))
args# (nth ~transform 2)]
;;TODO: check and transform args based on function used
(cond
@@ -80,11 +81,11 @@
(need-nodes? funame#)
(html/transform
~nodes (vec selector#)
- ((load-string (str "html/" funame#))(html/html-snippet args#)))
+ (fusym# (html/html-snippet args#)))
:else
(html/transform
~nodes (vec selector#)
- ((load-string (str "html/" funame#)) args#)))))
+ (fusym# args#)))))
;;;;Transformation operations
Please sign in to comment.
Something went wrong with that request. Please try again.