#template #compiler #variables #evaluation #parser #evaluators

rubble-templates-evaluators

A set of parsers, evaluators and compilers for text templates

2 releases

0.2.1 Jun 16, 2021
0.2.0 Jun 14, 2021

#560 in Template engine

21 downloads per month
Used in rubble-templates

MIT license

52KB
805 lines

rubble-templates-evaluators

A set of parsers, evaluators and compilers for text templates. Part of rubble-templates library.

What is this?

This is a part of a template engine. This engine allows compiling text templates into output text using variable substitution or code evaluation.

This particular crate contains parsers, evaluator and compiler implementations. To read more about it, refer to main rubble-templates README or the documentation.

Available evaluators and compilers

  • Default template schema (as in the main README):
    • simple - basic implementation:
      • Template - represents a template to parse,
      • SimpleEvaluationEngine - a basic evaluator that allows to use custom functions and variables,
      • TemplateCompiler - a default compiler that can be used with above structs.

Dependencies

~155–435KB