[][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 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 TemplateTrait as TemplateWasmServer;
pub use TemplateFixedTrait as TemplateFixed;
pub use TemplateFixedTrait as TemplateFixedText;

Modules

recompile
sd
serde_json

Structs

DisplayFn

Closure wrapper

Error

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

IoFmt

Not Use is internal library

Traits

Render

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

RenderFixed

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

RenderSafe

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

TemplateFixedTrait
TemplateTrait

Template trait, will implement by derive like Display

Type Definitions

Result

Derive Macros

Template

Implements TemplateTrait with html escape functionality

TemplateFixed

Implements TemplateTrait with html escape functionality

TemplateFixedText

Implements TemplateTrait without html escape functionality

TemplateMin

Work in Progress

TemplateText

Implements TemplateTrait without html escape functionality

TemplateWasmServer

Work in Progress