Skip to content

Conversation

@RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Sep 24, 2025

This PR adds support for Maud templates in Rust.

We already had some pre-processing for Rust but for Leptos class: syntax. This PR now added a dedicated Rust pre-processor that handles Leptos and Maud syntax.

We only start pre-processing Maud templates if the Rust file includes the html! macro.

Test plan

Looking at the extractor, you can see that we now do extract the proper classes in Maud templates:

image

Fixes: #18984

This was based on the Svelte pre processor for Leptos support, see:
#18093
@RobinMalfait RobinMalfait requested a review from a team as a code owner September 24, 2025 09:56
@RobinMalfait RobinMalfait marked this pull request as draft September 24, 2025 09:58
@RobinMalfait RobinMalfait marked this pull request as ready for review September 24, 2025 10:04
@RobinMalfait RobinMalfait enabled auto-merge (squash) September 24, 2025 10:05
@RobinMalfait RobinMalfait merged commit 85575a4 into main Sep 24, 2025
7 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-18984 branch September 24, 2025 11:33
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.

Tailwind 4.0.10 breaks class extraction from Maud templates in some contexts

2 participants