use br_plugin::addon::{Addon, AddonTemp};
use br_plugin::model::{Model, ModelTemp};


pub struct {{plugin}} {}

impl Addon for {{plugin}} {
    fn title(&mut self) -> &'static str {"{{title}}"}
    fn addon_show(&mut self) -> bool { true }
    fn addon_mode(&mut self) -> Vec<&'static str> { vec![] }
    fn model(&mut self, name: &str) -> Box<dyn Model> {
        match name {
            "{{addon}}" => Box::new(TestTest { addon: {{plugin}} {} }),
            _ => Box::new(ModelTemp { addon: AddonTemp {} })
        }
    }
}
pub mod {{addon}};