Skip to content

Instantly share code, notes, and snippets.

@xh4
Created March 12, 2020 09:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xh4/22e24342079e0fae5e32dd14473a2b99 to your computer and use it in GitHub Desktop.
Save xh4/22e24342079e0fae5e32dd14473a2b99 to your computer and use it in GitHub Desktop.
Common Lisp HTML Generation Test
(in-package :cl-user)
(ql:quickload :cl-who)
(ql:quickload :spinneret)
(defpackage :html-test
(:use :cl :cl-who :spinneret))
(in-package :html-test)
(defun test-html-cl-who ()
(eval
`(progn
(with-html-output-to-string (string)
,@(loop repeat 1024
collect `(:tr
,@(loop repeat 1024
collect '(:td)))))
nil)))
(defun test-html-spinneret ()
(eval
`(progn
(with-output-to-string (*html*)
(with-html
,@(loop repeat 1024
collect `(:tr
,@(loop repeat 1024
collect '(:td))))))
nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment