| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Currently, if given a file containing more than one top-level elements,
'read-html-post will only return the first.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* haunt/html.scm (sxml->html): Remove 'raw' element renderer.
* haunt/reader.scm (read-html-post): Parse to SXML, rather than reading
a raw string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* haunt/reader.scm (html-reader): Export. Use alist-cons to neaten up
code.
|
|
|
|
|
| |
* haunt/reader.scm (sxml-reader): Call 'load' with an absolute file
name.
|
|
|
|
| |
* haunt/reader.scm (read-posts): New procedure.
|
|
|
|
|
| |
* haunt/reader.scm (read-html-post): New procedure.
(html-reader): New variable.
|
|
|
|
| |
* haunt/reader.scm: Remove stray 'n' character.
|
|
* haunt/reader.scm: New file.
* Makefile.am (SOURCES): Add it.
|