perseus 0.4.2

A lightning-fast frontend web dev platform with full support for SSR and SSG.
Documentation
/// Logs the given `format!`-style data to the browser's console, or to stdout
/// as usual on the server.
#[macro_export]
#[cfg(client)]
macro_rules! web_log {
    ($format_str:literal $(, $data:expr)*) => {
        $crate::log::log_js_value(
            &$crate::log::JsValue::from(
                format!($format_str $(, $data)*)
            )
        );
    };
}

/// Logs the given `format!`-style data to the browser's console, or to stdout
/// on the server.
#[macro_export]
#[cfg(engine)]
macro_rules! web_log {
    ($format_str:literal $(, $data:expr)*) => {
        println!($format_str $(, $data)*)
    };
}