Home / Function/ test_razor_syntax_with() — tailwindcss Function Reference

test_razor_syntax_with() — tailwindcss Function Reference

Architecture documentation for the test_razor_syntax_with() function in razor.rs from the tailwindcss codebase.

Entity Profile

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/razor.rs lines 30–41

    fn test_razor_syntax_with() {
        let (input, expected) = (
            r#"<p class="@("@")md:bg-red-500 @@md:border-green-500 border-8">With 2 elements</p>"#,
            r#"<p class="     @md:bg-red-500  @md:border-green-500 border-8">With 2 elements</p>"#,
        );

        Razor::test(input, expected);
        Razor::test_extract_contains(
            input,
            vec!["@md:bg-red-500", "@md:border-green-500", "border-8"],
        );
    }

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free