incise.parsers.html
Provides a function, html-parser, to create what could be considered the standard parser from a function which takes the body of a file as a string and returns html.
default-meta
File->Parse
(File->Parse content-fn file)
Read in a file and turn it into a Parse instance.
html-parser
(html-parser parser-fn)
Take a function that parses a string into HTML and returns a HTML parser.
An HTML parser is a function which takes a file, reads it and writes it out as html to the proper place under public. If it is a page it should appear at the root, if it is a post it will be placed under a directory strucutre based on its date.
Parse->path
(Parse->path parse)
write-Parse
(write-Parse parse-data)
Write the result of Parse->string to a file in the out-dir at the path specified in the given parse. Return the written File.