11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.1k stars 494 forks source link

Enhance convenience and performance of DOM based transforms #3162

Closed nhoizey closed 4 months ago

nhoizey commented 9 months ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

I hate to chain a sequence of transforms that all

Would it be possible to have a nicer experience by integrating the “read HTML, load is as a DOM” and “export to new HTML” steps inside 11ty, so that we only have to deal with the DOM?

It could use linkeDOM, which is much faster than Cheerio or other.

Describe alternatives you've considered

No response

Additional context

No response

zachleat commented 8 months ago

Related #3194

zachleat commented 8 months ago

Even more related #3199

zachleat commented 4 months ago

Fwiw I do like the API Lume has here, though it’s probably not too fast.

https://lume.land/

image
zachleat commented 4 months ago

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with 👍!

nhoizey commented 4 months ago

I couldn't find any documentation about what #3199 provides to authors of plugins performing transforms.

Based on your latest comment about Lume's API, does it mean you're still considering different options, so it's not really available yet?

zachleat commented 4 months ago

I’m doing some repo cleanup and putting non-3.0 milestoned enhancements into the enhancement queue!