Simplify the URL data by making the [:blog-posts :foo] format the only URL format used in the config data. Basically don't put the string URL in the config data ever. Advertise the page-key->url function to convert it. But ultimately I want to allow the user to use that URL format directly in hiccup like [:a {:href [:blog-posts :foo]} "Blog Posts"] and write a hiccup postprocessor using clojure.walk/postwalk that converts the vector into a string. Alternatively I could fork the Hiccup generation library I'm using for perf improvement if I really feel like it later.
Simplify the URL data by making the
[:blog-posts :foo]
format the only URL format used in the config data. Basically don't put the string URL in the config data ever. Advertise thepage-key->url
function to convert it. But ultimately I want to allow the user to use that URL format directly in hiccup like[:a {:href [:blog-posts :foo]} "Blog Posts"]
and write a hiccup postprocessor usingclojure.walk/postwalk
that converts the vector into a string. Alternatively I could fork the Hiccup generation library I'm using for perf improvement if I really feel like it later.