fix issue with url params
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
|
||||
(return (dict
|
||||
:code 200
|
||||
:body (parse-html-file "./www/site/html/html/view-thought.html" #** (. request (get "route") (get "parameters")))))))
|
||||
:body (parse-html-file "./www/site/html/html/view-thought.html" #** (dfor [k v] (.items (. request (get "route") (get "parameters"))) k (quote-plus v)))))))
|
||||
|
||||
(when (= path "/style.css")
|
||||
(when (!= method "GET")
|
||||
|
@ -9,7 +9,7 @@
|
||||
(if-param-then-else param-name f"'{{{param-name}}}'" otherwise))
|
||||
|
||||
(defn get-thought-param-field [field]
|
||||
#[f[ cat www/data/thought-registry | grep -P "\t{{thought}}\t" | awk -v FS=$'\t' '{{print ${(get (dict :tags "1" :file-name "2" :title "3" :date "4" :description "5") field)}}}' ]f])
|
||||
#[f[ cat www/data/thought-registry | grep -P '\t{{thought}}\t'| awk -v FS=$'\t' '{{print ${(get (dict :tags "1" :file-name "2" :title "3" :date "4" :description "5") field)}}}' ]f])
|
||||
|
||||
(defn subshell [#* lines]
|
||||
#[f[({(.join "; " lines)})]f])
|
||||
|
Reference in New Issue
Block a user