Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance convenience and performance of DOM based transforms #3162

Open
nhoizey opened this issue Jan 11, 2024 · 2 comments
Open

Enhance convenience and performance of DOM based transforms #3162

nhoizey opened this issue Jan 11, 2024 · 2 comments

Comments

@nhoizey
Copy link
Contributor

nhoizey commented Jan 11, 2024

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

  • read HTML, “load” is as a DOM, change some values, export to new HTML, then
  • read HTML, “load” is as a DOM, change some values, export to new HTML, then
  • read HTML, “load” is as a DOM, change some values, export to new HTML, then

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
Copy link
Member

Related #3194

@zachleat
Copy link
Member

Even more related #3199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants