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

[WJ-1244] Add the concept of the "layout" to ftml #17

Merged
merged 13 commits into from
Jul 16, 2024

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Jul 15, 2024

Jira: WJ-1244

This adds the concept of "DOM layouts" to ftml. This is to help us resolve an issue we discussed in chat, where we need to emit Wikidot-compatible HTML in order to match with existing themes, but long-term we want a more sane and sensible DOM structure (e.g. using newer HTML5 constructs instead of <div> everywhere).

So part of this work involves adding the Layout enum to ftml, which we are adding in WikitextSettings. Then, as we update things, the HtmlRender implementation will be changed to emit different DOM elements depending on which layout is selected.

@emmiegit emmiegit self-assigned this Jul 15, 2024
@emmiegit emmiegit requested a review from Yossipossi1 July 16, 2024 05:51
@emmiegit emmiegit merged commit 50ef764 into main Jul 16, 2024
6 checks passed
@emmiegit emmiegit deleted the WJ-1244-frontend-layout branch July 16, 2024 13:28
@emmiegit
Copy link
Member Author

thanks @Yossipossi1

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.

2 participants