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

Refactor how HTML body is created in coerce-body helpers #361

Merged
merged 3 commits into from Nov 3, 2019

Conversation

martinklepsch
Copy link
Member

Looking at that code to understand the search issue I had a bit of a hard time understanding what the transformer is actually doing. It is passed down very far and in many places augmented/changed slightly making overall program flow a little hard to understand (to me).

I'm pretty sure there are still issues with this PR, particularly the show-build interceptor may need some touching up, but I wanted to open this just to get your thoughts on the general refactoring @holyjak.

@holyjak
Copy link
Contributor

holyjak commented Nov 1, 2019

Yes, it is simpler and it seems unlikely that we would need any other "transformer" than for HTML. We should perhaps rename coerce-body-conf to something more matching? Or perhaps just coerce-body?

@martinklepsch martinklepsch removed the WIP label Nov 2, 2019
@martinklepsch
Copy link
Member Author

@holyjak please merge if you think this is good. I skipped the renaming for now for the lack of any good name ideas 😛

@holyjak holyjak merged commit 48363ef into master Nov 3, 2019
@holyjak holyjak deleted the html-coercion branch November 3, 2019 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants