Notes app improvement
This commit is contained in:
parent
6ab803f10c
commit
5f6b26e7f3
1 changed files with 9 additions and 8 deletions
|
|
@ -41,14 +41,15 @@
|
|||
(str
|
||||
"<!DOCTYPE html>\n"
|
||||
(html
|
||||
(list [:head
|
||||
[:title "Notes"]]
|
||||
[:body
|
||||
[:h1 "Notes"]
|
||||
[:pre (slurp notes-file)]]
|
||||
[:form {:action "/" :method "post"}
|
||||
[:input {:type "text" :name "note"}]
|
||||
[:input {:type "submit" :value "Submit"}]]))))
|
||||
[:html
|
||||
[:head
|
||||
[:title "Notes"]]
|
||||
[:body
|
||||
[:h1 "Notes"]
|
||||
[:pre (slurp notes-file)]
|
||||
[:form {:action "/" :method "post"}
|
||||
[:input {:type "text" :name "note"}]
|
||||
[:input {:type "submit" :value "Submit"}]]]])))
|
||||
|
||||
;; run the server
|
||||
(with-open [server-socket (let [s (new ServerSocket 8080)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue