Skip to main content

css_file

Macro css_file 

Source
css_file!() { /* proc-macro */ }
Expand description

Emits a <style> tag from a file path accepted by include_str!.

use maud_extensions::css_file;

fn view() -> maud::Markup {
    maud::html! {
        (css_file!(concat!(
            env!("CARGO_MANIFEST_DIR"),
            "/tests/fixtures/runtime.css"
        )))
    }
}