test_haml_syntax() — tailwindcss Function Reference
Architecture documentation for the test_haml_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD fe4f5e5f_bb44_c704_a736_4f4ae7e6252b["test_haml_syntax()"] a88440ca_3a3f_4a07_4234_760efd75f698["assert_extract_candidates_contains()"] fe4f5e5f_bb44_c704_a736_4f4ae7e6252b -->|calls| a88440ca_3a3f_4a07_4234_760efd75f698 950dd1f1_4d68_5e31_aeaa_e1d3ecf0464e["pre_process_input()"] fe4f5e5f_bb44_c704_a736_4f4ae7e6252b -->|calls| 950dd1f1_4d68_5e31_aeaa_e1d3ecf0464e style fe4f5e5f_bb44_c704_a736_4f4ae7e6252b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 913–958
fn test_haml_syntax() {
for (input, expected) in [
// Element with classes
(
"%body.flex.flex-col.items-center.justify-center",
vec!["flex", "flex-col", "items-center", "justify-center"],
),
// Plain element
(
".text-slate-500.xl:text-gray-500",
vec!["text-slate-500", "xl:text-gray-500"],
),
// Element with hash attributes
(
".text-black.xl:text-red-500{ data: { tailwind: 'css' } }",
vec!["text-black", "xl:text-red-500"],
),
// Element with a boolean attribute
(
".text-green-500.xl:text-blue-500(data-sidebar)",
vec!["text-green-500", "xl:text-blue-500"],
),
// Element with interpreted content
(
".text-yellow-500.xl:text-purple-500= 'Element with interpreted content'",
vec!["text-yellow-500", "xl:text-purple-500"],
),
// Element with a hash at the end and an extra class.
(
".text-orange-500.xl:text-pink-500{ class: 'bg-slate-100' }",
vec!["text-orange-500", "xl:text-pink-500", "bg-slate-100"],
),
// Object reference
(
".text-teal-500.xl:text-indigo-500[@user, :greeting]",
vec!["text-teal-500", "xl:text-indigo-500"],
),
// Element with an ID
(
".text-lime-500.xl:text-emerald-500#root",
vec!["text-lime-500", "xl:text-emerald-500"],
),
] {
assert_extract_candidates_contains(&pre_process_input(input, "haml"), expected);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_haml_syntax() do?
test_haml_syntax() is a function in the tailwindcss codebase.
What does test_haml_syntax() call?
test_haml_syntax() calls 2 function(s): assert_extract_candidates_contains, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free