Crate trimmer

Source
Expand description

Trimmer: A yet another text template engine

User Guide | Github | Crate

Structs§

Comparable
An internal representation of something that can be compared
Context
A set of variables passed to a template
Number
An internal representation of a number that may be integer of real
Options
Options of the template
Output
A value returned from Variable::output
ParseError
Error parsing template
Parser
A reusable parser
Pos
Position of something in code
Template
A parsed template code that can be rendered
Var
Variable reference returned from methods of Variable trait

Enums§

DataError
This error is used to describe invalid variable usage in template
RenderError
Error rendering template

Traits§

Variable
A trait that you need to implement to put variable into the rendering context

Functions§

render_json
Renders a template using variables from serde_json::Value