Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-fxml Reference Manual, version 1.2.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 14:47:59 2021 GMT+0.
• Introduction | What cl-fxml is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
(ql:quickload "cl-fxml")
For template code interleaved with normal code including top-level forms use:
(named-readtables:in-readtable cl-fxml:syntax)
or wrap you normal code interleaving template code with with-xml
:
(cl-fxml:with-xml
((:p)
"Paragraph number one.))
The variable cl-fxml:*new-line-after-opening*
controls whether to make a newline after >
of the opening tags.
((:html)
((:head)
((:title) "Html example"))
((:body)
((:a :href "#") "Lorem ipsum dolor sit amet")))
Output redirection to string:
(let ((str (make-array '(0) :element-type 'base-char :fill-pointer 0 :adjustable t)))
(with-output-to-string (*standard-output* str)
((:html)
((:head)
((:title) "Html example"))
((:body)
((:a :href "#") "Lorem ipsum dolor sit amet"))))
str)
Interleaving code:
(let ((x 25))
((:root :x x 'attribute-without-value)
(loop for i below 10
do ((:element :index i)
(format t "~:r" i)))))
A template in a variable:
(defvar *x* '((:element :x x) "Test"))
((:root 'blah)
(eval `(cl-fxml:with-xml
(let ((x 123))
,*x*))))
Comment:
((:!-- "This is a comment."))
For lower case use the standard symbol character escaping (e.g. :|RootElement|
):
((:|RootElement| '|Blah|)
((:|Test|)
"Content"))
CDATA:
((:![CDATA[ "Raw data with symbols < >"))
((:?xml :version "1.0"))
((:!doctype 'lolz "["
((:!entity "lol0" (format nil "~s" "lol")))
((:!element 'lolz "(#PCDATA)"))
(loop for i from 1 below 10
do ((:!entity (format nil "lol~a" i)
(format nil "~s"
(apply #'concatenate 'string
(loop repeat 10
collect (format nil "&lol~a;" (1- i))))))))
"]"))
((:lolz)
"&lol9;")
<!-- ... -->
<![CDATA[ ... ]]>
, ampersand escape sequencesNext: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cl-fxml system |
Goheeca <goheeca@gmail.com>
MIT
cl-fxml: Common Lisp - Finally eXtended Markup Language.
1.2.1
cl-fxml.asd (file)
cl-fxml.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The cl-fxml.asd file | ||
• The cl-fxml/cl-fxml.lisp file |
Next: The cl-fxml/cl-fxml․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cl-fxml.asd
cl-fxml (system)
Previous: The cl-fxml․asd file, Up: Lisp files [Contents][Index]
cl-fxml (system)
cl-fxml.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-fxml package |
cl-fxml.lisp (file)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported special variables | ||
• Exported macros |
Next: Exported macros, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
cl-fxml.lisp (file)
cl-fxml.lisp (file)
Previous: Exported special variables, Up: Exported definitions [Contents][Index]
cl-fxml.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
cl-fxml.lisp (file)
cl-fxml.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
cl-fxml.lisp (file)
cl-fxml.lisp (file)
cl-fxml.lisp (file)
cl-fxml.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L |
---|
Jump to: | C F L |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | F M P S W X |
---|
Jump to: | F M P S W X |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
C | |||
cl-fxml : | The cl-fxml system | ||
cl-fxml : | The cl-fxml package | ||
| |||
P | |||
Package, cl-fxml : | The cl-fxml package | ||
| |||
S | |||
System, cl-fxml : | The cl-fxml system | ||
|
Jump to: | C P S |
---|