Clojure port of Template::Reverse in Perl