Next: Assets, Previous: Readers, Up: Programming Interface [Contents][Index]
(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.
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.
Return #t
if object is a page object.
Return the file name string for page.
Return the contents of page.
Return the writer procedure page.
Write page to output-directory.