libhanzzok 0.1.5

Hanzzok compiler library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde_hzdata::HzdataValue;

use crate::codegen::{Context, HtmlNode};

pub trait DecoratorRule {
    fn name(&self) -> String;

    fn accept_raw_text(&self) -> bool {
        false
    }

    fn apply(
        &self,
        context: &mut Context,
        target: Vec<HtmlNode>,
        param: Option<HzdataValue>,
    ) -> Vec<HtmlNode>;
}