use br_addon::addon::Addon;
use br_addon::module::Module;

#[derive(Debug, Clone)]
pub struct {{plugin}} {}

impl Addon for {{plugin}} {
    fn title(&self) -> &'static str {"{{title}}"}
    fn icon(&self) -> &'static str {""}
    fn description(&self) -> &'static str {
        ""
    }
    fn sort(&self) -> usize {
        99
    }

    fn module(&mut self, name: &str) -> Result<Box<dyn Module>, String> {
        Ok(match name {
            "test" => Box::new( TestTest {}),
            _ => return Err(format!("not a module: {name}")),
        })
    }
}
mod {{addon}};