ibdknox/crate — pull request #11 by emezeske (2012-05-22 04:35:29+00:00)
Title: Handle boolean attributes like hiccup does.

Hiccup treats attributes with boolean values specially: it drops attributes like {:foo false}, and rewrites attributes like {:foo true} to foo="foo". This pullreq changes crate to behave the same way.

This is necessary for things like select-options to work correctly, as they are implemented with the expectation of this special behavior.

Note that this pullreq supersedes the more short-sighted https://github.com/ibdknox/crate/pull/9 , which fixed the symptom in select-options, instead of the underlying problem.