Created
May 29, 2012 13:14
-
-
Save semperos/2828315 to your computer and use it in GitHub Desktop.
Select lists, Hiccup vs Crate
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
[:select | |
(form/select-options [["-- select --" "nil"] | |
["Foo" "foo"] | |
["Bar" "bar"]] | |
"nil")] |
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
<!-- Hiccup output --> | |
<select> | |
<option selected="" value="nil">-- select --</option> | |
<option value="foo">Foo</option> | |
<option value="bar">Bar</option> | |
</select> | |
<!-- Crate output --> | |
<select> | |
<option selected="true" value="nil">-- select --</option> | |
<option selected="false" value="foo">Foo</option> | |
<option selected="false" value="bar">Bar</option> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment