htoml

HTML page templates described with a toml config
Log | Files | Refs | README

commit 1df2e862ce728e8fb3e5e17e10921c19290ef1a8
parent 91188c71f3ca59bcd5a2160e4efa284bb5be691d
Author: Jackson G. Kaindume <seestem@merely.tech>
Date:   Sat,  6 Aug 2022 00:20:17 +0200

update readme

Diffstat:
MREADME | 24+++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/README b/README @@ -1,13 +1,31 @@ [v0.1.0] [Last update:2022-08-06] 𝙝𝙩𝙤𝙢𝙡 ---------------------------------------------------------------------- - HTML page templates described with in a toml config + HTML page templates described with a toml config ---------------------------------------------------------------------- - + authors: [seestem] source code: https://codeberg.org/seestem/htoml requirements: rustc 1.62+ - ---------------------------------------------------------------------- +HTOML file example (contents of a .toml) +---------------------------------------------------------------------- + + # Title of the HTML page + title = "Homepage" + + # Path to html output + output = "index.html" + + # Different sections for the HTML document + [sections] + + # Navigation section [Optional] + [sections.navbar] + + # Variant to use + variant = "basic" + # Links for the navigation + links = [{url= "/", text= "Home"}, {url= "/about", text= "About"},] ====================================================================== \ No newline at end of file