gflohr / qgoda

Qgoda (pronounce: yagoda!) is an extensible static site generator with arbitrary taxonomies and cross-links and a strong focus on multilanguage facilities.
https://www.qgoda.net/
Other
31 stars 4 forks source link

Rewrite HTMLFilter interface to use HTML::Tree #51

Open gflohr opened 6 years ago

gflohr commented 6 years ago

The HTMLFilter interface currently runs HTML::Parser over the document and lets the plug-ins install handlers for the various events. That is not flexible enough.

It's better to use HTML::Tree so that plug-ins have a chance to evaluate context.

Incompatible change that is unlikely to break existing sites.

gflohr commented 6 years ago

Probably the better option would be to try interfacing with https://cheerio.js.org/ so that you can use jQuery style DOM manipulation.