by swannodette · 13y ago · 0 comments
I'm pretty excited about the latest release of ClojureScript that makes all this possible. With respect to speed of incremental compiles, code size, performance of generated code, and debugging we're finally in a good place (with of course many improvements planned in the near future).
None of this would have been possible without the tireless work of 62 contributors over the past two years, http://github.com/clojure/clojurescript/. A big thank you to all!
Happy hacking!
$ lein cljsbuild auto async-tutl
...
java.lang.Exception: Unknown build identifier: async-tutl
Did the name of the tutorial change?edit: ell instead of 1. I guess that's why I use a heavily-serifed font for my coding. I even re-read the command several times looking for a simple typo to catch exactly this problem.
$ lein cljsbuild auto async-tut1
Note the one instead of the ell.
get sublime2 http://www.sublimetext.com/2
package control https://sublime.wbond.net/installation#st2
launch "sublime 2"
ctrl-`
paste in the package control script (from above link) <ret>
re-launch "sublime 2"
⌘-shift-p # dialog comes up
install ↓ <ret>
# up will pop a dialog after reading the package database
paredit <ret>
⌘-shift-p
install ↓ <ret>
lispindent <ret>
The extra level of detail would cloudy the main flow of the tutorial so maybe have some supporting material links for the slower kids?(you'll have to include a (.preventDefault e) in the (listen) callback though)
> goog.dom.getElement
function (element) {
return goog.isString(element) ?
document.getElementById(element) : element;
}
> goog.dom.getElement("query")
<input id="query" type="text"> foo(bar, baz) => (foo bar baz)
herp(bar, derp(baz)) => (herp bar (derp baz))
This might help as well: http://adambard.com/blog/clojure-in-15-minutes/