12. Skribilo User Manual — Standard Library |
This section describes Skribilo's standard library.
The function include
is particularily useful to spread a
long document amongst several files.
(include file
)
file
The file containing the nodes to be included.
These nodes are included in the document in place of the include
call.*document-path*
.The given file is searched in the current document path.
Skribilo provides functions to deal with paths. These functions are related to the path that can be specified on the command line, when the Skribilo compiler is invoked (see Chapter compiler.)
(*document-path*)
*document-path* is a procedure as returned by SRFI-39 make-parameter. As such, (*document-path*) returns the current document path, while (*document-path* '("." "/some/path")) changes the value of the current path. This is equivalent to Skribe's skribe-path and skribe-path-set! functions. The value of *document-path* can also be changed using the -I command-line option of the compiler (see Chapter 14 for details).
Several functions describing the configuration of Skribilo are
exported by the (skribilo config)
module. First, the skribilo-version
function returns the version of Skribilo being used
as a string.
(skribilo-version)
For instance, the following piece of code:
produces the following output
The skribilo-url
function returns, not surprisingly,
the URL of the project:
(skribilo-url)
The skribilo-module-directory
returns the directory
under which Skribilo modules were installed:
(skribilo-module-directory)
skribilo-config
program, as described in Section 15.