test_twig_syntax() — tailwindcss Function Reference
Architecture documentation for the test_twig_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6e2d1ac5_f61b_c17d_2ffd_a9249cb4891a["test_twig_syntax()"] 67c0e082_b760_8463_2a6c_c5f39c564f98["assert_extract_candidates_contains()"] 6e2d1ac5_f61b_c17d_2ffd_a9249cb4891a -->|calls| 67c0e082_b760_8463_2a6c_c5f39c564f98 style 6e2d1ac5_f61b_c17d_2ffd_a9249cb4891a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 898–909
fn test_twig_syntax() {
assert_extract_candidates_contains(
r#"<div class="flex items-center mx-4{% if session.isValid %}{% else %} h-4{% endif %}"></div>"#,
vec!["flex", "items-center", "mx-4", "h-4"],
);
// With touching both `}` and `{`
assert_extract_candidates_contains(
r#"<div class="{% if true %}flex{% else %}block{% endif %}">"#,
vec!["flex", "block"],
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_twig_syntax() do?
test_twig_syntax() is a function in the tailwindcss codebase.
What does test_twig_syntax() call?
test_twig_syntax() calls 1 function(s): assert_extract_candidates_contains.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free