Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created July 18, 2012 01:56
Show Gist options
  • Save joekarma/3133596 to your computer and use it in GitHub Desktop.
Save joekarma/3133596 to your computer and use it in GitHub Desktop.
I couldn't find a convenient way to have the HTML monkeylib-html emits output directly to a string, so fashioned a patch of sorts for sbclrc. This was probably a mistake. Oh well!
;;; Monkey patch for the monkey lib
(defun monkeylib-html::emit-html-to-string (html)
(with-output-to-string (s)
(let ((monkeylib-text-output:*text-output* s))
(monkeylib-html:emit-html html))))
(export 'monkeylib-html::emit-html-to-string
(find-package :monkeylib-html))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment