Home / Function/ test_pug_pre_processor() — tailwindcss Function Reference

test_pug_pre_processor() — tailwindcss Function Reference

Architecture documentation for the test_pug_pre_processor() function in pug.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  c3ef8fc5_2c33_9dfd_93fa_5a0ca28d3964["test_pug_pre_processor()"]
  3983a944_71de_6013_6287_530db068a263["pug.rs"]
  c3ef8fc5_2c33_9dfd_93fa_5a0ca28d3964 -->|defined in| 3983a944_71de_6013_6287_530db068a263
  style c3ef8fc5_2c33_9dfd_93fa_5a0ca28d3964 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/pug.rs lines 101–118

    fn test_pug_pre_processor() {
        for (input, expected) in [
            // Convert dots to spaces
            ("div.flex.bg-red-500", "div flex bg-red-500"),
            (".flex.bg-red-500", " flex bg-red-500"),
            // Keep dots in strings
            (r#"div(class="px-2.5")"#, r#"div class="px-2.5")"#),
            // Nested brackets
            (
                "bg-[url(https://example.com/?q=[1,2])]",
                "bg-[url(https://example.com/?q=[1,2])]",
            ),
            // Classes in HTML attributes
            (r#"<div id="px-2.5"></div>"#, r#"<div id="px-2.5"></div>"#),
        ] {
            Pug::test(input, expected);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does test_pug_pre_processor() do?
test_pug_pre_processor() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/pug.rs.
Where is test_pug_pre_processor() defined?
test_pug_pre_processor() is defined in crates/oxide/src/extractor/pre_processors/pug.rs at line 101.

Analyze Your Own Codebase

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

Try Supermodel Free