Home / Function/ pre_process_input() — tailwindcss Function Reference

pre_process_input() — tailwindcss Function Reference

Architecture documentation for the pre_process_input() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  66c9cfff_936c_6bbe_e940_4d6d87148c48["pre_process_input()"]
  d865d4fd_bb15_6d9a_a900_10e82a6856fb["mod.rs"]
  66c9cfff_936c_6bbe_e940_4d6d87148c48 -->|defined in| d865d4fd_bb15_6d9a_a900_10e82a6856fb
  63be2454_f385_5711_9d49_84f7e913bd4b["read_changed_content()"]
  63be2454_f385_5711_9d49_84f7e913bd4b -->|calls| 66c9cfff_936c_6bbe_e940_4d6d87148c48
  style 66c9cfff_936c_6bbe_e940_4d6d87148c48 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/scanner/mod.rs lines 480–498

pub fn pre_process_input(content: &[u8], extension: &str) -> Vec<u8> {
    use crate::extractor::pre_processors::*;

    match extension {
        "clj" | "cljs" | "cljc" => Clojure.process(content),
        "heex" | "eex" | "ex" | "exs" => Elixir.process(content),
        "cshtml" | "razor" => Razor.process(content),
        "haml" => Haml.process(content),
        "json" => Json.process(content),
        "md" | "mdx" => Markdown.process(content),
        "pug" => Pug.process(content),
        "rb" | "erb" => Ruby.process(content),
        "slim" | "slang" => Slim.process(content),
        "svelte" => Svelte.process(content),
        "rs" => Rust.process(content),
        "vue" => Vue.process(content),
        _ => content.to_vec(),
    }
}

Domain

Subdomains

Frequently Asked Questions

What does pre_process_input() do?
pre_process_input() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/mod.rs.
Where is pre_process_input() defined?
pre_process_input() is defined in crates/oxide/src/scanner/mod.rs at line 480.
What calls pre_process_input()?
pre_process_input() is called by 1 function(s): read_changed_content.

Analyze Your Own Codebase

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

Try Supermodel Free