Constant TEMPLATE_FILE
Source pub const TEMPLATE_FILE: &str = "// Auto Generated! DO NOT EDIT!\n\nuse yew::prelude::{html, Component, Context, Html, Properties};\n\npub struct NODE_NAME {}\n\n#[derive(Properties, Debug, Clone, PartialEq, Eq)]\npub struct Props {\n #[prop_or_default]\n pub class: Option<&\'static str>,\n\n #[prop_or_default]\n pub width: Option<&\'static str>,\n\n #[prop_or_default]\n pub height: Option<&\'static str>,\n\n #[prop_or_default]\n pub color: Option<&\'static str>,\n\n #[prop_or_default]\n pub fill: Option<&\'static str>,\n\n #[prop_or_default]\n pub spin: bool,\n\n #[prop_or_default]\n pub rotate: i16,\n}\n\nimpl Component for NODE_NAME {\n type Properties = Props;\n type Message = ();\n\n fn create(_ctx: &Context<Self>) -> Self {\n Self {}\n }\n\n fn view(&self, ctx: &Context<Self>) -> Html {\n let props = ctx.props();\n // TODO(Shaohua): Do not generate style attribute if it is empty.\n let mut style = String::new();\n if props.rotate != 0 {\n style += &format!(\"transform: rotate({}deg);\", props.rotate);\n }\n html! {\n <svg\n xmlns={ \"http://www.w3.org/2000/svg\" }\n class={ props.class.unwrap_or(\"\") }\n width={ props.width.unwrap_or(\"16\") }\n height={ props.height.unwrap_or(\"16\") }\n focusable={ \"false\" }\n data-icon={ \"DATA_NAME\" }\n viewBox={ \"0 0 16 16\" }\n fill={ props.fill.unwrap_or(\"currentColor\") }\n style={ style }\n >\n MARKUP\n </svg>\n }\n }\n}\n";