Return to repo list

pystatsite

On-or-Offline static site generator in Python
Return to HMagellan.com

commit dbbd365195ae1bf9fa175cb5f4aeea5fa64e2064
parent 63b6637617a19f48506a9bc7826018e894a0f79d
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Mon, 29 Mar 2021 12:39:36 -0500

init of template system

Diffstat:
Msrc/add.py | 8++++++++
Dtemplates/blog.html | 0
Dtemplates/footer.html | 0
Dtemplates/header.html | 0
Atemplates/sample/links.json | 3+++
Atemplates/sample/sample.html | 12++++++++++++
6 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/add.py b/src/add.py @@ -0,0 +1,8 @@ +#! /usr/bin/env python + +from .share import * + +def new_blog(): + pass +def new_top_page(): + pass diff --git a/templates/blog.html b/templates/blog.html diff --git a/templates/footer.html b/templates/footer.html diff --git a/templates/header.html b/templates/header.html diff --git a/templates/sample/links.json b/templates/sample/links.json @@ -0,0 +1,3 @@ +{ + "~homepage" : "https://sample.com" +} diff --git a/templates/sample/sample.html b/templates/sample/sample.html @@ -0,0 +1,12 @@ +<div id="header"> + <h1><a href="~homepage">Sample Website</a></h1> +</div> +<div id="menu"> +</div> +<div id="content"> +</div> +<div id="footer"> + <p> + Copyright (c) 2021 Me, all rights reserved. + </p> +</div>