2 ms·
A while ago I had written a tool called PySiteCreator. It lets you create simple web sites (I originally thought of it for creating wikis, but later realized i
by vram22 9y ago
A while ago I had written a tool called PySiteCreator.
It lets you create simple web sites (I originally thought of it for creating wikis, but later realized it was more general) by writing them purely in Python, using Python function calls to generate various HTML elements.
It uses a make-like approach (file timestamp checking between input and output files) and relies on a simple convention that users have to follow, of defining a Python function called create() in each .py file they write, where each .py file will be used by the tool to generate a corresponding .html file. Other than that, it places no restrictions on the user, and any arbitrary Python code can be used to generate or pull in data from anywhere, to be included in the web pages it creates.
Blog post about PySiteCreator here:
https://jugad2.blogspot.in/2009/11/early-release-of-pysitecreator-v01.html https://jugad2.blogspot.in/2009/11/early-release-of-pysitecr...
Source code here:
https://bitbucket.org/vasudevram/pysitecreator https://bitbucket.org/vasudevram/pysitecreator