preparation for modularization, correction of copyright date coverage.
[CommonLispStat.git] / external / smarkup / test / smarkup-test.cl
blob4c2b2c17b32492a3fe3c7dc885cdf82b923bf476
2 (in-package #:smarkup-test)
4 (defun test-xhtml-file ()
5 (let ((smarkup-file (ch-asdf:asdf-lookup-path "asdf:/smarkup-test/test/sample-sexp"))
6 (xhtml-file (merge-pathnames #p"sample.xhtml"
7 (ch-asdf:asdf-lookup-path "asdf:/smarkup-test/test"))))
8 (with-open-file (stream smarkup-file)
9 (let ((sexp (read stream)))
10 (let ((filtered (smarkup::apply-filters
11 sexp
12 '(:lisp :smarkup-metadata :html-metadata :ref))))
13 (smarkup::render-as :xhtml filtered xhtml-file))))))