Skip to main content

motion_script

Function motion_script 

Source
pub fn motion_script() -> Markup
Expand description

Renders the <script> tags loading Motion and the plugin init script.

use autumn_plugin_motion::motion_script;
use autumn_web::html;

let head = html! {
    head {
        (motion_script())
    }
};
assert!(head.into_string().contains("/static/_plugins/motion/motion.min."));