From d3a9ba4ebea136fae676911148509ec3f729abbc Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 24 Apr 2016 15:26:44 -0400 Subject: website: Add copy of HTML manual. --- website/manual/Pages.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 website/manual/Pages.html (limited to 'website/manual/Pages.html') diff --git a/website/manual/Pages.html b/website/manual/Pages.html new file mode 100644 index 0000000..d061e10 --- /dev/null +++ b/website/manual/Pages.html @@ -0,0 +1,115 @@ + + + + + +Haunt Reference Manual: Pages + + + + + + + + + + + + + + + + + + + + +
+

+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