saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 12339ea5125e7ec8ea6c59f98ab09f6245c1d734
parent 51c0c162ec51ad219acaf97e4f7b8b93023fa262
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 29 Oct 2019 18:46:34 +0100

improve comments and remove a few TODO markers

Diffstat:
Msaait.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/saait.c b/saait.c @@ -31,7 +31,7 @@ char *argv0; #include "config.h" -static struct variable *global; +static struct variable *global; /* global config variables */ char * estrdup(const char *s) @@ -476,8 +476,7 @@ main(int argc, char *argv[]) /* header */ for (i = 0; i < templateslen; i++) { - /* TODO: document special "page". - TODO: make "page" template mandatory? */ + /* "page" is a special case */ if (!strcmp(templates[i].name, "page")) continue; r = snprintf(file, sizeof(file), "%s/%s", outputdir, @@ -526,9 +525,8 @@ main(int argc, char *argv[]) /* item blocks */ for (j = 0; j < templateslen; j++) { - /* TODO: page is a special case for now */ + /* "page" is a special case */ if (!strcmp(templates[j].name, "page")) { - /* TODO: config option to not process as page (opposite of "index" option)? */ r = snprintf(outputfile, sizeof(outputfile), "%s/%s", outputdir, filename); if (r < 0 || (size_t)r >= sizeof(outputfile)) {