I'm trying to format a color in hex for use in HTML, running ClojureScript in the browser.
Here's my "format" function.
(defn gen-format [& args] (apply gstring/format args) )
in a "strings" namespace where I've required the goog.string library with :
(:require [goog.string :as gstring] [goog.string.format :as gformat])
But when I try to call it from javascript :
document.write(mypackage.strings.gen_format("#%x%x%x",0,0,0));
it just returns #%x%x%x
It's not crashing. But the goog format function doesn't seem to be substituting the values in. Am I doing something wrong here?