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 13d591a4_1912_c07b_16de_85ff169854a5["test_razor_syntax_with()"] 43c79a43_9190_869e_b719_f96050481838["razor.rs"] 13d591a4_1912_c07b_16de_85ff169854a5 -->|defined in| 43c79a43_9190_869e_b719_f96050481838 style 13d591a4_1912_c07b_16de_85ff169854a5 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