test_strings_only_occur_when_nested() — tailwindcss Function Reference
Architecture documentation for the test_strings_only_occur_when_nested() function in haml.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD b3fa67e9_2619_99d0_c53b_35dc0017e697["test_strings_only_occur_when_nested()"] ca2cb7f3_129e_2351_7658_5668e9773b08["haml.rs"] b3fa67e9_2619_99d0_c53b_35dc0017e697 -->|defined in| ca2cb7f3_129e_2351_7658_5668e9773b08 style b3fa67e9_2619_99d0_c53b_35dc0017e697 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/pre_processors/haml.rs lines 402–425
fn test_strings_only_occur_when_nested() {
let input = r#"
%p.mt-2.text-xl
The quote in the next word, can't be the start of a string
%h3.mt-24.text-center.text-4xl.font-bold.italic
The classes above should be extracted
"#;
Haml::test_extract_contains(
input,
vec![
// First paragraph
"mt-2",
"text-xl",
// second paragraph
"mt-24",
"text-center",
"text-4xl",
"font-bold",
"italic",
],
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_strings_only_occur_when_nested() do?
test_strings_only_occur_when_nested() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/haml.rs.
Where is test_strings_only_occur_when_nested() defined?
test_strings_only_occur_when_nested() is defined in crates/oxide/src/extractor/pre_processors/haml.rs at line 402.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free