Skip to main content

BlockHandler

Trait BlockHandler 

Source
pub trait BlockHandler: Send + Sync {
    // Required method
    fn generate(
        &self,
        block_name: &str,
        open_tag_line: &str,
        context: &UpdateContext,
    ) -> Result<Vec<String>>;
}
Expand description

Trait for generating block content by block name.

Required Methods§

Source

fn generate( &self, block_name: &str, open_tag_line: &str, context: &UpdateContext, ) -> Result<Vec<String>>

Implementors§