Last active
August 29, 2015 14:27
-
-
Save joakin/c1c31f198faffbd2d227 to your computer and use it in GitHub Desktop.
Loading markdown and a gist in cljs-browser-repl
This file contains hidden or 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
[{:type :markdown :value " | |
# Welcome to the Clojurescript web repl! | |
This is a web repl using cljs bootstrapped. It's in pretty alpha state but lots of things work fine. | |
Try these examples out ⬇️. Clicking on them will pre-populate the input and so that you only have to click on it and press Enter. | |
"} | |
{:type :input :value "(+ 1 2)"} | |
{:type :response :value "3"} | |
{:type :input :value "(map inc [1 2 3])"} | |
{:type :response :value "(2 3 4)"} | |
{:type :markdown :value "Try defining a function using `defn`. Like this example ⬇️"} | |
{:type :input :value "(defn square [x] (* x x))"} | |
{:type :markdown :value "Once you are done you can call it by hugging it with parenthesis, like this ⬇️"} | |
{:type :input :value "(square 5)"} | |
{:type :markdown :value " | |
That's all for now! | |
Check out [the git repo](https://github.com/joakin/cljs-browser-repl), I would love to have your | |
input or help! In the [*Current status* section of the readme](https://github.com/joakin/cljs-browser-repl/blob/master/README.md#user-content-current-status) | |
I'm writing things I want to do and ideas of possible things to consider. | |
Also, I don't write clojurescript very often, so excuse the quality of the code. I'd love advice. | |
Thanks! | |
[@joakin](https://twitter.com/joakin) | |
" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment