6 ms·
Why Python 2 if I may ask? I wrote my static site generator in Python 3.7 by manually translating the Perl version I had written earlier. Both are available at
by jjjbokma 7y ago
Why Python 2 if I may ask?
I wrote my static site generator in Python 3.7 by manually translating the Perl version I had written earlier. Both are available at github https://github.com/john-bokma/tumblelog https://github.com/john-bokma/tumblelog
Example of this set up: http://plurrrr.com/ http://plurrrr.com/
- kragen 7y agoNo real reason for using Python 2 — it was just an expedient choice in the moment. Amusingly, your tumblelog.py is about the same size as dercuano.py, while the intersection of features is almost exactly empty. We managed to do even the most basic things differently — for example, yours reads a single long file with % lines separating the entries (like a fortune file!) and produces a passel of output files, while mine reads a passel of input files and produces a single multi-megabyte output file. This diversity of choices perhaps demonstrates the need for experimentation to see what works best for different people and in different circumstances. (Or it could just mean I'm insane.)