kocotian.pl

My personal webpage sources
git clone git://git.kocotian.pl/kocotian.pl.git
Log | Files | Refs | README | LICENSE

commit 3522cd389575bad4227ff2d21c4b6e8bc70008c5
Author: kocotian <kocotian@kocotian.pl>
Date:   Sat, 20 Mar 2021 16:01:29 +0100

Initial (README, generate.c)

Diffstat:
AREADME | 25+++++++++++++++++++++++++
Agenerate.c | 7+++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -0,0 +1,25 @@ +kocotian +======== + +Static page generator for my webpage wrote in C99. + +Usage +===== +generate (generate.c) takes minimum one argument: +* first argument is a file with content. +* second, optional argument is a template. Optional, because content can + contain template variable. + +generate is used by Makefile + +Structure +========= +Content is just content, but it can also contain variables. Variable is +a line starting with @, followed by variable name (single word) and variable +content (anything until new line). +Examples: + @title My title + @template blog + +Template is HTML code, but can write nested code surrounded by `%` signs (like +in node.c by Tsoding). diff --git a/generate.c b/generate.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int +main(int argc, char *argv[]) +{ + return 0; +}