summaryrefslogtreecommitdiff
path: root/haunt/reader.scm
Commit message (Collapse)AuthorAgeFilesLines
* Fix Guile < 3.0 compatibility issue.David Thompson2022-01-131-2/+13
|
* Mark modules that call 'load' as non-declarative.v0.2.5David Thompson2021-04-151-0/+1
|
* reader: Follow symlinks in read-posts.David Thompson2021-03-181-1/+1
|
* reader: html: Add support for multiple top-level elements.Jakob L. Kreuze2019-05-211-2/+11
| | | | | Currently, if given a file containing more than one top-level elements, 'read-html-post will only return the first.
* post: Add read-metadata-headers procedure.David Thompson2015-10-151-15/+3
| | | | | | | | * haunt/post.scm (read-metadata-headers): New procedure. * haunt/reader.scm (read-html-post): Reimplement using 'read-metadata-headers'. * tests/post.scm (%tzoffset): New variable. ("read-metadata-headers"): New test.
* html: Remove 'raw' element type.David Thompson2015-10-021-1/+4
| | | | | | * haunt/html.scm (sxml->html): Remove 'raw' element renderer. * haunt/reader.scm (read-html-post): Parse to SXML, rather than reading a raw string.
* site: Change post-filter to file-filter.David Thompson2015-08-081-7/+7
| | | | | | | | | | | | | | | Genericized name because the predicate procedure may be used on any file, not just posts. * haunt/site.scm (<site>)[post-filter]: Delete. [file-filter]: New field. (site): Replace #:post-filter with #:file-filter. (build-site): Use 'site-post-filter'. (make-file-name-filter): Delete. (make-file-filter): New procedure. (default-file-name-filter): Delete. (default-file-filter): New procedure. * haunt/reader.scm (read-posts): Flip predicate around.
* site: Add a way to ignore post files that match a pattern.David Thompson2015-08-031-7/+10
| | | | | | | | | | | | This allows one to ignore files that would otherwise match a reader's file extension, such as an Emacs temporary file like ".#foo.html". * haunt/site.scm (<site>)[post-filter]: New field. (site-posts-filter): New accessor. (site): Add #:post-filter argument. (build-site): Pass post filter procedure to 'read-posts'. (make-file-name-filter, default-file-name-filter): New procedures. * haunt/reader.scm (read-posts): Add 'ignore?' argument.
* reader: Export html-reader and fix style.David Thompson2015-04-111-4/+4
| | | | | * haunt/reader.scm (html-reader): Export. Use alist-cons to neaten up code.
* reader: sxml-reader: Use absolute path when loading Scheme file.David Thompson2015-04-111-1/+1
| | | | | * haunt/reader.scm (sxml-reader): Call 'load' with an absolute file name.
* reader: Add read-posts procedure.David Thompson2015-04-111-0/+21
| | | | * haunt/reader.scm (read-posts): New procedure.
* reader: Add html-reader.David Thompson2015-04-111-0/+23
| | | | | * haunt/reader.scm (read-html-post): New procedure. (html-reader): New variable.
* reader: Remove stray 'n'.David Thompson2015-04-111-1/+1
| | | | * haunt/reader.scm: Remove stray 'n' character.
* Add reader module.David Thompson2015-04-101-0/+75
* haunt/reader.scm: New file. * Makefile.am (SOURCES): Add it.