Skip to content

Instantly share code, notes, and snippets.

@bolivier
Last active January 22, 2020 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bolivier/7bdcd952ec72c20f18dd459437d9127c to your computer and use it in GitHub Desktop.
Save bolivier/7bdcd952ec72c20f18dd459437d9127c to your computer and use it in GitHub Desktop.
Hiccup for clojure II
[:<>
[: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