-
Notifications
You must be signed in to change notification settings - Fork 28
/
special.lisp
48 lines (31 loc) · 1.12 KB
/
special.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(in-package #:spinneret)
(declaim (stream *html*))
(defparameter *html* (make-synonym-stream '*standard-output*)
"Output stream for HTML generation.")
(declaim (string *html-lang* *html-charset*))
(defparameter *html-lang* "en")
(defparameter *html-charset* "UTF-8")
(declaim (type (integer -1 #.(1- most-positive-fixnum)) *depth*))
(defvar *depth* -1
"Depth of the tag being output.")
(defvar *indent*)
(defun get-indent ()
(or (bound-value '*indent*)
*depth*))
(defvar *pre* nil)
(defparameter *fill-column* 80
"Column at which to wrap text.
This is always measured from the start of the tag.")
(declaim (boolean *pending-space* *suppress-inserted-spaces*))
(defvar *pending-space* nil)
(defvar *suppress-inserted-spaces* nil
"When set to non-nil, spaces will never be inserted automatically.")
(defvar *html-path* nil
"List (in ascending order) of parent nodes.")
(assert (null *html-path*))
(defvar *html-style* :human
"How should we pretty-print HTML?")
(declaim (type (member :human :tree) *html-style*))
(defvar *always-quote* nil
"Add quotes to all attributes.")
(declaim (type boolean *always-quote*))