Python script to hande a website build step for a static website templated with jinja2. by Gerard Spivey
A simple tool to aid websites that have grown. After your site grows past 4-5 static pages maintaining it may become cumbersome. At this point using a static site generator such as jekyll may be problematic or have limitations based on your initial implementation.
This tool looks to aid in bringing website template capabilities to in production sites. This script can easily be used along with a continous integration (CI) server or manually ran before site publication.
pip install jinja2
Directory Structure:
Script expects to be run from basedir
/basedir
/templates
.templateignore
base.html
index.html
template_processor.py
/.public
Ignored files in .templateignore:
Add any file in templates directory that will not produce a final html file
Ex:
.templateignore
base.html
template_processor.py