FAQ Database Discussion Community


Parenscipt not compiling valid expression?

common-lisp,hunchentoot,parenscript
I have this parenscript macro: ;;; Parenscript macro for showModal() and close() methods for pop-up dialogs. ;;;Takes the dialog's id, button for opening the dialog's id, and closing button's id. (defpsmacro open-close-modal-dialog (dialog-id element-id-1 element-id-2 &key open close open-args close-args) (let ((dialog (ps-gensym))) `(progn (setf ,dialog (chain document (get-element-by-id ,dialog-id)))...

How to get the POST as parameter of a function in Hunchentoot?

post,common-lisp,sbcl,hunchentoot
I want to use a web formular to filter records stored in mongo-db. My query function uses a filter as followed: (defun models (filter) (docs (db.find *model-collection* filter :limit 1))) And when I use it in SBCL, it can retrieve the record {"NAME" :"a1"}, with one of the following command:...

SBCL: Deploying Hunchentoot application as executable

common-lisp,executable,sbcl,hunchentoot
Dear StackOverflow community, I started playing with SBCL Common Lisp and want to develop a small web application using Hunchentoot. For easy deployment I planned to save everything in a binary using sb-ext:save-lisp-and-die as I can live with the big output size. For the executable you need to supply a...

Can't get the post in LISP hunchentoot

post,lisp,common-lisp,hunchentoot
I try to implement a simple post example based on Hunchentoot. Here is the code: (define-easy-handler (test :uri "/test") () (with-html-output-to-string (*standard-output* nil :prologue t :indent t) (:html (:body (:h1 "Test") (:form :action "/test2" :method "post" :id "addform" (:input :type "text" :name "name" :class "txt") (:input :type "submit" :class "btn"...