test_razor_syntax_with() — tailwindcss Function Reference
Architecture documentation for the test_razor_syntax_with() function in razor.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD bcebd804_c997_80f9_e21f_092f1f0219d7["test_razor_syntax_with()"] 5e723576_1c08_7bc2_5dae_fad3ce841e88["razor.rs"] bcebd804_c997_80f9_e21f_092f1f0219d7 -->|defined in| 5e723576_1c08_7bc2_5dae_fad3ce841e88 style bcebd804_c997_80f9_e21f_092f1f0219d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/pre_processors/razor.rs lines 30–41
fn test_razor_syntax_with() {
let (input, expected) = (
r#"<p class="@("@")md:bg-red-500 @@md:border-green-500 border-8">With 2 elements</p>"#,
r#"<p class=" @md:bg-red-500 @md:border-green-500 border-8">With 2 elements</p>"#,
);
Razor::test(input, expected);
Razor::test_extract_contains(
input,
vec!["@md:bg-red-500", "@md:border-green-500", "border-8"],
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_razor_syntax_with() do?
test_razor_syntax_with() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/razor.rs.
Where is test_razor_syntax_with() defined?
test_razor_syntax_with() is defined in crates/oxide/src/extractor/pre_processors/razor.rs at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free