A naïve static site generator.
#1Pageling::Node cares about trailing slashes
The Pageling::Node class keeps a registry of existing nodes indexed by their paths; this is so that the same path will always point to the same Pageling::Node object. But currently, the same path (to a directory) can two different objects, depending on whether or not the trailing slash is included in the path (as the slash will result in a different index).
This shouldn’t be happening. Likely the indices should be either normalised before they are used at all, or the way the registry is kept should be radically changed.
- status set to closed
Fixed with
a6bad8a909266ce713690cb5995595255011103e
, by normalising. (The normalisation only cares about trailing slashes, though…)