Skip to content

Instantly share code, notes, and snippets.

View jlouiss's full-sized avatar

Jean jlouiss

View GitHub Profile
@jlouiss
jlouiss / lisp-html-server.lsp
Created July 15, 2020 17:04
Credit: Practical Common Lisp
(in-package :com.gigamonkeys.url-function)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; API
(defmacro define-url-function (name (request &rest params) &body body)
(with-gensyms (entity)
(let ((params (mapcar #'normalize-param params)))
`(progn
(defun ,name (,request ,entity)
@jlouiss
jlouiss / lisp-web-server.lsp
Created July 15, 2020 17:16
Credit: Land of Lisp
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; version 2 of the License.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; Partial Author: Conrad Barski, M.D.