-
-
Save gmp26/b02c7b1068f45747a4d43e4ea4a4370a to your computer and use it in GitHub Desktop.
Attempting to use hicada from rum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns sablono.compiler | |
(:require [hicada.compiler :refer [compile]])) | |
(defmacro html | |
[body] | |
(compile body {:create-element 'js/React.createElement | |
:transform-fn (comp) | |
:array-children? false} | |
{} &env)) | |
(defn compile-html [content] | |
(html content)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not yet working. My project.clj has this: (Should I exclude sablono?)
and I'm seeing these errors from
lein fig:build