sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.61k stars 97 forks source link

Add active hook system to settings #1983

Closed alerque closed 5 months ago

alerque commented 5 months ago

c.f. https://github.com/sile-typesetter/sile/issues/1963#issuecomment-1925228811

After discussion on the above issue I looked and found 3 different places I had monkey-patched a callback system into settings for various reasons. Looking over my own past hacks I think this feature would have made all of them better.

alerque commented 5 months ago

Switching to draft mode until this handles :pushState() and :popState() as well, otherwise it won't be fully functional.