# HG changeset patch # User Brian Neal # Date 1687640811 18000 # Node ID b9514abc2a6734e5c8d6d993018433f4fed91bf5 # Parent 45ce2c20a4e77d003e7d70dec80f3ac2783cbb0f Initial commit of ssg101. diff -r 45ce2c20a4e7 -r b9514abc2a67 .hgignore --- a/.hgignore Sun May 07 19:30:52 2023 -0500 +++ b/.hgignore Sat Jun 24 16:06:51 2023 -0500 @@ -5,6 +5,7 @@ *.log.*.gz *.pyc *.swp +.DS_Store secrets.json *.db *.mp3 @@ -22,3 +23,4 @@ sg101/xapian_index sg101/node_modules sg101/bower_components +tools/ssg101/output diff -r 45ce2c20a4e7 -r b9514abc2a67 tools/ssg101/ssg101.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/ssg101/ssg101.py Sat Jun 24 16:06:51 2023 -0500 @@ -0,0 +1,17 @@ +import jinja2 + + +def main(): + print('Hello World') + + env = jinja2.Environment( + loader=jinja2.PackageLoader('ssg101'), + ) + template = env.get_template('home.html') + + with open('output/home.html', 'w') as fp: + fp.write(template.render()) + + +if __name__ == '__main__': + main() diff -r 45ce2c20a4e7 -r b9514abc2a67 tools/ssg101/templates/base.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/ssg101/templates/base.html Sat Jun 24 16:06:51 2023 -0500 @@ -0,0 +1,22 @@ + + + + {% block head %} + + + + + + {% endblock %} + + +
+ {% block content %} + {% endblock %} +
+ + + diff -r 45ce2c20a4e7 -r b9514abc2a67 tools/ssg101/templates/home.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/ssg101/templates/home.html Sat Jun 24 16:06:51 2023 -0500 @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block title %}SurfGuitar101.com{% endblock %} +{% block content %} +

SurfGuitar101.com

+

+ Welcome to the archives of SurfGuitar101.com. +

+{% endblock %}