Web DSL for Possum, WIP
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
html | |
body { | |
p "hi there" | |
h1 ":)" | |
} |
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
(* Web DSL *) | |
(* helper functions *) | |
defun make-sym tag is | |
defun f x is | |
print concat concat "<" tag ">" | |
print x | |
print concat concat "</" tag ">" | |
end | |
set-global-symbol tag ref f | |
end | |
make-sym "h1" | |
h1 "test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment