Function rubble_templates::compile_template_from[][src]

pub fn compile_template_from(
    template: Template,
    variables: HashMap<String, String>,
    functions: HashMap<String, Box<dyn Function>>
) -> Result<String, CompilationError>

Compiles template from Template.

For some special cases consider using SimpleEvaluationEngine, TemplateCompiler or other specific Evaluator and Compiler traits implementations.

Template can look like the following: Some template {{ variable }} - or something. Code that will be evaluated should be put between {{ and }}.