From 2eb81abb648d497b8b9e497ec00d58a893f3727e Mon Sep 17 00:00:00 2001 From: Starfall Date: Sat, 23 Oct 2021 12:47:20 -0500 Subject: strike: statement of intent for a few more variables --- README | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index f8aefaa..93fac3e 100644 --- a/README +++ b/README @@ -24,7 +24,7 @@ And some stretch goals to turn it into a blog generator: strike.ini file --------------- -Strike should be passed the location of a .ini file or a directory containing a file named strike.ini. This is a text file in Python's configparser format (for now). You can see an example config file in the sample directory. +Strike should be passed the location of a .ini file or a directory containing a file named strike.ini. This is a text file in Python's configparser format (for now). You can see an example config file with all supported options at sample/strike.ini. Markup ------ @@ -36,7 +36,13 @@ It generates
s and has specific markup for page titles. Templating ---------- -TBD. Right now, templates should be written in plain HTML. The special marker ${content} will be replaced with all custom page content (also in raw HTML). +TBD. + +Right now, templates are just HTML in a Python f-string. You have access to the following variables: + +{content} : Complete file contents. +{meta['title']} : Filename, with extension dropped. +{meta['date']} : File modification date. Front matter ------------ -- cgit