With a little bit of OOP and a monster commit, I too can make a an ssg,
Ka-chow...
Changes:
- ➕ added class to represent SiteFile
- ➕ enabled conversion semi-automatic based on file type.
- ➕ added template to Testing.
- ➖ Removed awful code for dependency search
- ➖ Removed awful code for enumerating directory
- ➕ arguments to a class to allow for easier passing to other
parts of the code.
TODO:
- 🐞Test and debug with a copy of a live site,
- ✍️ Add handling for Pandoc errors on stderr
- ❓Look into parallelising as much as possible.
This should be done before program exit and as such is currently
in a comment after the main class body.
TODO: add this back in at the appropriate location.
This currently relies on the last modified date and a dotfile.
I may change this later to use a hash to detect changes
however this method seems good enough.