Crate gtmpl [] [src]

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");

Modules

funcs

Builtin functions.

Structs

Context

A Context for the template. Passed to the template exectution.

Template

The main template structure.

Enums

Value

Represents any valid JSON value.

Functions

template

Provides simple basic templating given just a template sting and context.

Type Definitions

Func

Function type that is used to implement builtin and custom functions.