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/Assets.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 manuals/haunt/Assets.html (limited to 'manuals/haunt/Assets.html') diff --git a/manuals/haunt/Assets.html b/manuals/haunt/Assets.html new file mode 100644 index 0000000..fce019a --- /dev/null +++ b/manuals/haunt/Assets.html @@ -0,0 +1,115 @@ + + + + + + +Assets (Haunt Reference Manual) + + + + + + + + + + + + + + + + + + + +
+

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

+
+
+ +

5.5 Assets

+ +
+
(use-modules (haunt asset))
+
+ +

Assets represent files on disk that should be copied verbatim to a +site’s output directory. Common types of assets include CSS, +JavaScript, images, and fonts. +

+
+
Scheme Procedure: make-asset source target
+

Create a new asset object. The source and target +arguments are file names that are relative to a site source and target +directory, respectively (see Sites). +

+ +
+
Scheme Procedure: asset? object
+

Return #t if object is an asset object. +

+ +
+
Scheme Procedure: asset-source asset
+

Return the source file name for asset. +

+ +
+
Scheme Procedure: asset-target asset
+

Return the target file name for asset. +

+ +
+
Scheme Procedure: install-asset asset prefix
+

Install the source file of asset into the target directory +within prefix. +

+ +
+
Scheme Procedure: directory-assets directory keep? dest
+

Create a list of asset objects to be stored within dest for all +files in directory that match keep?, recursively. +

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