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


pub struct {{plugin}} {}

impl Addon for {{plugin}} {
    fn name(&mut self) -> &'static str { "{{addon}}" }
    fn title(&mut self) -> &'static str {"{{title}}"}
    fn 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}};