test_embedded_slim_extraction() — tailwindcss Function Reference
Architecture documentation for the test_embedded_slim_extraction() function in ruby.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 5c301112_4d21_4e78_9191_36bf2d4c285f["test_embedded_slim_extraction()"] de63b342_bc8b_68a8_063b_cc3f8524fd2c["ruby.rs"] 5c301112_4d21_4e78_9191_36bf2d4c285f -->|defined in| de63b342_bc8b_68a8_063b_cc3f8524fd2c style 5c301112_4d21_4e78_9191_36bf2d4c285f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/pre_processors/ruby.rs lines 345–388
fn test_embedded_slim_extraction() {
let input = r#"
class QweComponent < ApplicationComponent
slim_template <<~SLIM
button.rounded-full.bg-red-500
| Some text
button.rounded-full(
class="flex"
)
| Some text
SLIM
end
"#;
Ruby::test_extract_contains(input, vec!["rounded-full", "bg-red-500", "flex"]);
// Embedded Svelte just to verify that we properly pick up the `{x}_template`
let input = r#"
class QweComponent < ApplicationComponent
svelte_template <<~HTML
<div class:flex="true"></div>
HTML
end
"#;
Ruby::test_extract_contains(input, vec!["flex"]);
// Together in the same file
let input = r#"
class QweComponent < ApplicationComponent
slim_template <<~SLIM
button.z-1.z-2
| Some text
SLIM
end
class QweComponent < ApplicationComponent
svelte_template <<~HTML
<div class:z-3="true"></div>
HTML
end
"#;
Ruby::test_extract_contains(input, vec!["z-1", "z-2", "z-3"]);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_embedded_slim_extraction() do?
test_embedded_slim_extraction() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/ruby.rs.
Where is test_embedded_slim_extraction() defined?
test_embedded_slim_extraction() is defined in crates/oxide/src/extractor/pre_processors/ruby.rs at line 345.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free