Trait rubble_templates_core::evaluator::Evaluator[][src]

pub trait Evaluator {
    fn evaluate(
        syntax_node: &SyntaxNode,
        context: &mut Context
    ) -> Result<String, SyntaxError>; }
Expand description

Trait that describes an ability to evaluate code in template.

Any struct that implements this trait should be able to interpret a given AST and evaluate it. AST are not constructed by the Evaluator, they are consumed by it.

Required methods