;; (require :cl-ppcre) ;; (require :colorize) #| This little example opens a file, and looks for tokens which it then substitutes with the colorized code of the "foobar" file. |# ;; this regex needs some tweaking (defparameter *rgx* "(.*)(.*)") (defun lisp-into-html (file-in file-out) (with-open-file (html file-in :direction :input) (with-open-file (out file-out :direction :output :if-exists :error) (loop with line while (setq line (read-line html nil nil)) do (multiple-value-bind (found-p res) (cl-ppcre:scan-to-strings *rgx* line) (if found-p (progn (write-string (aref res 0) out) (write-string "