stawege-html-plugin 0.1.2

HTML template engine plugin for Stawege.
Documentation
use crate::{Attributes, Item, TemplateContext};

pub trait TagLogic {
    fn is_valid_name(&mut self, name: &str) -> bool {
        self.names().contains(&name)
    }

    fn names(&self) -> &[&str] {
        &[]
    }

    #[allow(unused)]
    fn run(
        &self,
        name: &str,
        attributes: &Attributes,
        items: &[Item],
        template_context: &mut TemplateContext,
    ) {
    }
}