pydsigner / anchovy

A minimal, unopinionated framework for static website generation.
Apache License 2.0
2 stars 0 forks source link

Unify DirPathCalc and OutputDirPathCalc/WorkingDirPathCalc inheritance structure #87

Closed pydsigner closed 9 months ago

pydsigner commented 9 months ago

It is surprising that DirPathCalc is not the superclass of OutputDirPathCalc and WorkingDirPathCalc. This structure is the result of DirPathCalc not supporting ContextDir keys, which itself has rendered DirPathCalc essentially useless in common operations, which will not care to produce any files beyond the walls of working_dir and output_dir. Both the structural issue and the usefulness issue can be resolved by changing DirPathCalc's path parameter to support Paths or ContextDirs.