Backport renderData() from Clojure version