deftwigfn/deftwigaliasedfn should return the function handler created

This commit is contained in:
Gered 2014-06-19 08:26:06 -04:00
parent 3ab6c96c93
commit 941c0ad2e2

View file

@ -49,7 +49,8 @@
`(let [f# (fn ~args ~@body)]
(.store
@functions
(make-function-handler ~fn-name [] f#))))
(make-function-handler ~fn-name [] f#))
(get-function ~fn-name)))
(defmacro defaliasedtwigfn
"defines a new template function. templates can call it by by the name specified (or one of the
@ -59,4 +60,5 @@
`(let [f# (fn ~args ~@body)]
(.store
@functions
(make-function-handler ~fn-name ~aliases f#))))
(make-function-handler ~fn-name ~aliases f#))
(get-function ~fn-name)))