Crate gtmpl[−][src]
Expand description
The Golang Templating Language for Rust.
Example
use gtmpl; let output = gtmpl::template("Finally! Some {{ . }} for Rust", "gtmpl"); assert_eq!(&output.unwrap(), "Finally! Some gtmpl for Rust");
Re-exports
pub use error::TemplateError;
Modules
Macros
Help to write new functions for gtmpl.
Structs
A Context for the template. Passed to the template exectution.
The main template structure.
Enums
Functions
FromValue
wrapped in a macro (required for gtmpl_fn!
macro).
Provides simple basic templating given just a template sting and context.
Type Definitions
Function type supported by gtmpl_value
.