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.
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§
- auto
- Add auto sized buffer functionality wrapping ywrites 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
- Display
Fn - Closure wrapper
- Error
- The error type which is returned from formatting a message into a stream.
- IoFmt
- Not Use is internal library
- Json
- Json
Pretty
Traits§
- AsJson
- AsJson
Pretty - Buffer
- Minimal Buffer trait with utf-8 safety
- Buffer
InDerive - Into
Copy Iterator - Render
- Render trait, used for wrap unsafe expressions
{{ ... }}
when it’s in a html template - RenderA
- Auto ref trait
- Render
Bytes - Render trait, used for wrap expressions
{{ ... }}
when it’s in a html template - Render
BytesA - Auto copy/deref trait
- Render
Bytes Safe - Render trait, used for wrap safe expressions
{{{ ... }}}
or text - Render
Bytes SafeA - Auto copy/deref trait
- Serialize
- Template
Bytes Trait - Template trait
- Template
Trait - Template trait, will implement by derive
fmt::Display
Functions§
Type Aliases§
Attribute Macros§
Derive Macros§
- Serialize
- Template
- Implements TemplateTrait with html escape functionality
- Template
Bytes - Implements TemplateBytesTrait with html escape functionality
- Template
Bytes Min - Work in Progress
- Template
Bytes Text - Implements TemplateBytesTrait without html escape functionality
- Template
Min - Work in Progress
- Template
Text - Implements TemplateTrait without html escape functionality
- Template
Wasm Server - Work in Progress