From b4c02352143c05fdbe35629bed63f6ad32cbd313 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 3 Jun 2026 16:36:21 -0700 Subject: header and footer cli args --- README.md | 7 +++--- src/Main.hs | 74 ++++++++++++++++++++++--------------------------------------- 2 files changed, 30 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index 510c34d..158c032 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ testbak/ ``` where `.frag` and `.html` are equivalent, and invoke loom: ``` -loom -r {root path} -o {output path} [-s {static path}] +loom -r {root path} -o {output path} -e {header template} -f {footer template} [-s {static path}] ``` Each fragment will generate a html page in the output directory in the same structure. The generated page will be composed of a header and footer with the text of the fragment placed in `
`. The header also conatins the title of the page, which can be specified by placing a line @@ -33,7 +33,9 @@ Each fragment will generate a html page in the output directory in the same stru ``` on the first line of the fragment file. The title cannot contain newlines or the vertical bar character. If unspecified it will default to the basename of the fragment file. -The header will also include a `