Expand description

Yarte stands for Yet Another Rust Template Engine, is the fastest template engine. Uses a Handlebars-like syntax, well known and intuitive for most developers. Yarte is an optimized, and easy-to-use rust crate, can create logic around their templates using conditionals, loops, rust code and templates composition.

Yarte book

Re-exports

pub use TemplateTrait as Template;
pub use TemplateTrait as TemplateText;
pub use TemplateTrait as TemplateMin;
pub use TemplateBytesTrait as TemplateWasmServer;
pub use TemplateBytesTrait as TemplateBytes;
pub use TemplateBytesTrait as TemplateBytesText;
pub use TemplateBytesTrait as TemplateBytesMin;

Modules

Macros

Add auto sized buffer functionality wrapping ywrites macros

Format handlebars string in this scope without html escape functionality

Format handlebars string in this scope with html escape functionality

Write handlebars template to buf-min::Buffer in this scope without html escape functionality

Write handlebars template to buf-min::Buffer in this scope with html escape functionality

Write handlebars template to buf-min::Buffer in this scope without html escape functionality

Structs

Closure wrapper

The error type which is returned from formatting a message into a stream.

Not Use is internal library

Traits

Minimal Buffer trait with utf-8 safety

Render trait, used for wrap unsafe expressions {{ ... }} when it’s in a html template

Auto ref trait

Render trait, used for wrap expressions {{ ... }} when it’s in a html template

Auto copy/deref trait

Render trait, used for wrap safe expressions {{{ ... }}} or text

Auto copy/deref trait

Template trait

Template trait, will implement by derive fmt::Display

Functions

Type Definitions

Attribute Macros

Derive Macros

Implements TemplateTrait with html escape functionality

Implements TemplateBytesTrait with html escape functionality

Work in Progress

Implements TemplateBytesTrait without html escape functionality

Work in Progress

Implements TemplateTrait without html escape functionality

Work in Progress