summaryrefslogtreecommitdiff
path: root/haunt/utils.scm
Commit message (Collapse)AuthorAgeFilesLines
* Move file-extension to (haunt utils).David Thompson2023-12-281-0/+6
|
* utils: Remove leading "/" in join-file-name-components.David Thompson2021-03-181-1/+1
|
* utils: Clean up and add tests.David Thompson2015-10-141-4/+18
| | | | | | | | | | | | | * haunt/utils.scm (flat-map, string-split-at): Add docstring. (file-name-components): Adjust slightly to handle "/". (join-file-name-components): Use prefix string join grammar. (absolute-file-name): Add docstring. * test-env.in: New file. * tests/utils.scm: New file. * Makefile.am (TESTS, TEST_EXTENSIONS, SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): New variables. * configure.ac: Add test-env pre-processed file. * build-aux/test-driver: New file.
* utils: Add make-user-module.David Thompson2015-10-121-1/+10
| | | | * haunt/utils.scm (make-user-module): New procedure.
* utils: file-name-components: Handle empty string.David Thompson2015-07-261-1/+3
| | | | | * haunt/utils.scm (file-name-components): Return the empty list when given the empty string.
* Add static asset support.David Thompson2015-04-131-0/+10
| | | | | | | | * haunt/asset.scm: New file. * Makefile.am (SOURCES): Add it. * haunt/site.scm (build-site): Add support for assets. * haunt/utils.scm (file-name-components, join-file-name-components): New procedures.
* site: Fix cleaning step before building.David Thompson2015-04-111-8/+26
| | | | | | | | Cleaning the build directory failed when a subdirectory existed. * haunt/utils.scm (clean-directory): Remove. (delete-file-recursively): New procedure. * haunt/site.scm (build-site): Use delete-file-recursively.
* utils: Add take-up-to.David Thompson2015-04-111-0/+11
| | | | * haunt/utils.scm (take-up-to): New procedure.
* utils: Add string->date*.David Thompson2015-04-111-1/+8
| | | | * haunt/utils.scm (string->date*): New procedure.
* page: Ensure output directory exists before writing.David Thompson2015-04-111-1/+29
| | | | | * haunt/utils.scm (mkdir-p): New procedure. * haunt/page.scm (write-page): Create missing directories before writing.
* site: Add build-site procedure.David Thompson2015-04-111-1/+15
| | | | | * haunt/utils.scm (absolute-file-name, clean-directory): New procedures. * haunt/site.scm (build-site): New procedure.
* Add utils module.David Thompson2015-04-111-0/+58
* haunt/utils.scm: New file. * Makefile.am (SOURCES): Add it.