11.3 File
(require pollen/file) | package: pollen |
A utility module that provides functions for working with Pollen source and output files. The tests rely on file extensions specified in pollen/world.
Pollen handles six kinds of source files:
Preprocessor, with file extension .pp.
Markup, with file extension .pm.
Template, with file extension .pt.
Null, with file extension .p.
Scribble, with file extension .scrbl.
For each kind of Pollen source file, the corresponding output file is generated by removing the extension from the name of the source file. So the preprocessor source file default.css.pp would become default.css. Scribble files work differently — the corresponding output file is the source file but with an html extension rather than scrbl. So pollen.scrbl would become pollen.html.
procedure
(preproc-source? v) → boolean?
v : any/c
procedure
(markup-source? v) → boolean?
v : any/c
procedure
(template-source? v) → boolean?
v : any/c
procedure
(null-source? v) → boolean?
v : any/c
procedure
(scribble-source? v) → boolean?
v : any/c
procedure
(pagetree-source? v) → boolean?
v : any/c
Examples: | ||||||||||||
|
procedure
(has-preproc-source? v) → boolean?
v : any/c
procedure
(has-markup-source? v) → boolean?
v : any/c
procedure
(has-template-source? v) → boolean?
v : any/c
procedure
(has-null-source? v) → boolean?
v : any/c
procedure
(has-scribble-source? v) → boolean?
v : any/c
procedure
(has/is-preproc-source? v) → boolean?
v : any/c
procedure
(has/is-markup-source? v) → boolean?
v : any/c
procedure
(has/is-template-source? v) → boolean?
v : any/c
procedure
(has/is-null-source? v) → boolean?
v : any/c
procedure
(has/is-scribble-source? v) → boolean?
v : any/c
procedure
(->preproc-source-path p) → path?
p : pathish?
procedure
(->markup-source-path p) → path?
p : pathish?
procedure
(->template-source-path p) → path?
p : pathish?
procedure
(->null-source-path p) → path?
p : pathish?
procedure
(->scribble-source-path p) → path?
p : pathish?
Examples: | |||||||||||||
|
procedure
(->output-path p) → path?
p : pathish?
Examples: | ||||||||
|