From 50dc7bb79af62b819648c67c5ccd33b3470e626c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 10 Mar 2018 21:41:36 -0500 Subject: Add Haunt manual. --- manuals/haunt/Pages.html | 114 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 manuals/haunt/Pages.html (limited to 'manuals/haunt/Pages.html') diff --git a/manuals/haunt/Pages.html b/manuals/haunt/Pages.html new file mode 100644 index 0000000..1db8ed7 --- /dev/null +++ b/manuals/haunt/Pages.html @@ -0,0 +1,114 @@ + + + + + + +Pages (Haunt Reference Manual) + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Programming Interface   [Contents][Index]

+
+
+ +

5.4 Pages

+ +
+
(use-modules (haunt page))
+
+ +

Page objects represent files that have yet to be written to disk. +Their contents may be any arbitrary object that their writer procedure +knows how to serialize. In practice, pages are almost always written +to disk as HTML or XML. +

+
+
Scheme Procedure: make-page file-name contents writer
+

Create a new page object. The string file-name specifies where +the page should be written to in the file system. The procedure +writer is responsible for serializing contents. +

+ +
+
Scheme Procedure: page? object
+

Return #t if object is a page object. +

+ +
+
Scheme Procedure: page-file-name page
+

Return the file name string for page. +

+ +
+
Scheme Procedure: page-contents page
+

Return the contents of page. +

+ +
+
Scheme Procedure: page-writer page
+

Return the writer procedure page. +

+ +
+
Scheme Procedure: write-page page output-directory
+

Write page to output-directory. +

+ + + + + + -- cgit v1.2.3