Home / Function/ test_twig_syntax() — tailwindcss Function Reference

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
  7e290381_34e2_74b9_6e12_857e89e454a8["test_twig_syntax()"]
  a88440ca_3a3f_4a07_4234_760efd75f698["assert_extract_candidates_contains()"]
  7e290381_34e2_74b9_6e12_857e89e454a8 -->|calls| a88440ca_3a3f_4a07_4234_760efd75f698
  style 7e290381_34e2_74b9_6e12_857e89e454a8 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

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