We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init-path
This will be particularly useful for plugins such as the Visualizer for now.
The trick might involve something along the lines of a macro somewhat like this:
(defmacro inline-resource [resource-path] (slurp (io/resource resource-path)))
Combined with ClojureScript's reader, i.e:
(cljs.reader/read-string (inline-all-edns "schemas/editorial.edn"))
The text was updated successfully, but these errors were encountered:
You can skip the read-string and inline the edn itself. You can change init-path to a macro
(defmacro init-path [path & others] (let [paths (-> others flatten (conj path) flatten) data (->> paths schema-files slurp-files vec)] `(apply init-schema (quote ~data))))
Sorry, something went wrong.
No branches or pull requests
This will be particularly useful for plugins such as the Visualizer for now.
The trick might involve something along the lines of a macro somewhat like this:
Combined with ClojureScript's reader, i.e:
The text was updated successfully, but these errors were encountered: