Skip to content

jdeisenberg/cljs_in_html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A proof of concept: putting ClojureScript code into an HTML document. What you see here is derived from ClojureScript compiled in ClojureScript, though I am sure that Joel Martin never intended for his code to be used as badly as I have used it. Blame me, not him :)

My thinking was as follows: if his ClojureScript REPL can compile from strings entered into a text area, why can’t it compile from strings that are in an HTML document. I knew that sort of thing was possible; processing-js can do it. In fact, I lifted some of their code and modified it slightly; it's in the load_ext.js file.

I have put this all together without a thorough understanding of the original (as will be obvious when you look at the code). Again, it’s a proof of concept, and, if it turns out to be useful, I leave it to smarter and more skilled people to make it work better.

About

Allow ClojureScript directly in HTML documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published