[][src]Crate yarte

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 TemplateFixedTrait as TemplateFixed;
pub use TemplateFixedTrait as TemplateFixedText;
pub use TemplateFixedTrait as TemplateFixedMin;
pub use TemplateBytesTrait as TemplateBytes;
pub use TemplateBytesTrait as TemplateBytesText;
pub use TemplateBytesTrait as TemplateBytesMin;

Modules

json
recompile

Macros

yformat

Format handlebars string in this scope without html escape functionality

yformat_html

Format handlebars string in this scope with html escape functionality

ywrite

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

ywrite_html

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

ywrite_min

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

Structs

Aligned256
Error

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

IoFmt

Not Use is internal library

Json
JsonPretty

Traits

AsJson
AsJsonPretty
Buffer

Minimal Buffer trait

IntoCopyIterator
Render

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

RenderA

Auto ref trait

RenderBytes

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

RenderBytesA

Auto copy/deref trait

RenderBytesSafe

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

RenderBytesSafeA

Auto copy/deref trait

RenderFixed

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

RenderFixedA

Auto copy/deref trait

RenderSafe

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

RenderSafeA

Auto copy/deref trait

Serialize
TemplateBytesTrait

Template trait

TemplateFixedTrait

Template trait

TemplateTrait

Template trait, will implement by derive fmt::Display

Functions

begin_array
end_array
end_array_object
end_object
end_object_object
to_bytes
to_bytes_mut
write_comma

Type Definitions

Result

Derive Macros

Serialize
Template

Implements TemplateTrait with html escape functionality

TemplateBytes

Implements TemplateBytesTrait with html escape functionality

TemplateBytesMin

Work in Progress

TemplateBytesText

Implements TemplateBytesTrait without html escape functionality

TemplateFixed

Implements TemplateFixedTrait with html escape functionality

TemplateFixedMin

Work in Progress

TemplateFixedText

Implements TemplateTrait without html escape functionality

TemplateMin

Work in Progress

TemplateText

Implements TemplateTrait without html escape functionality

TemplateWasmServer

Work in Progress