pydsigner / anchovy

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

Add featureful Matcher class #5

Closed pydsigner closed 2 years ago

pydsigner commented 2 years ago

Matcher functions are fairly useful, but it would be often helpful to combine them with and or or. We could make a PathMatcher class with __and__ and __or__ implemented so we can get these behaviors. Follow the behavior of and and or for determining which match is sent to the PathCalcs.