Crate trimmer [] [src]

Trimmer: A yet another text template engine

User Guide | Github | Crate

Structs

Context

A set of variables passed to a template

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