Last active
January 22, 2020 01:32
-
-
Save bolivier/7bdcd952ec72c20f18dd459437d9127c to your computer and use it in GitHub Desktop.
Hiccup for clojure II
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
[:<> | |
[:section.todoapp | |
[:header.header | |
[:h1 "todos"] | |
[:input.new-todo {:placeholder "What needs to be done?" | |
:autoFocus true}]] | |
[:section.main | |
[:input.toggle-all | |
{:type "checkbox" | |
:id :toggle-all}] | |
[:label {:for :toggle-all} | |
"Mark all as complete"] | |
[:ul.todo-list | |
[:li.completed | |
[:div.view | |
[:input.toggle {:type "checkbox" | |
:checked true}] | |
[:label "Taste JavaScript"] | |
[:button.destroy]] | |
[:input.edit {:value "Create a TodoMVC template"}]] | |
[:li | |
[:div.view | |
[:input.toggle {:type "checkbox"}] | |
[:label "Buy a unicorn"] | |
[:button.destroy]]]]] | |
[:footer.footer | |
[:span.todo-count | |
[:strong "0"] | |
" items left"] | |
[:ul.filters | |
[:li | |
[:a.selected "All"]] | |
[:li | |
[:a "Active"]] | |
[:li | |
[:a "Completed"]]] | |
[:button.clear-completed "Clear completed"]]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment