pub struct TinyTemplate<'template> { /* fields omitted */ }
The TinyTemplate struct is the entry point for the TinyTemplate library. It contains the
template and formatter registries and provides functions to render templates as well as to
register templates and formatters.
Create a new TinyTemplate registry. The returned registry contains no templates, and has
format_unescaped
registered as a formatter named "unescaped".
Parse and compile the given template, then register it under the given name.
Register the given formatter function under the given name.
Render the template with the given name using the given context object. The context
object must implement serde::Serialize
as it will be converted to serde_json::Value
.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static