#template #nested #process #quickly #nest

template-nest

TemplateNest is a template engine for Rust, designed to process nested templates quickly and efficiently

3 unstable releases

0.2.2 Jan 13, 2024
0.2.1 Jan 13, 2024
0.2.0 Dec 6, 2023
0.1.0 Nov 26, 2023

#146 in Template engine

Download history 13/week @ 2024-01-09 7/week @ 2024-02-27 6/week @ 2024-04-02 70/week @ 2024-04-09

76 downloads per month

ISC license

23KB
333 lines

Table of Contents

  1. News
    1. v0.2.2 - 2024-01-13
    2. v0.2.0 - 2023-12-06
    3. v0.1.0 - 2023-11-26
  2. Other Implementations

TemplateNest is a template engine module for Rust, designed to process nested templates quickly and efficiently.

Documentation: https://docs.rs/template-nest/

For more details on the idea behind Template::Nest read: https://metacpan.org/pod/Template::Nest#DESCRIPTION and https://pypi.org/project/template-nest/.

The development of this module is sponsored by Tom Gracey (virtual.blue). He originally authored Template::Nest in Perl 5.

News

v0.2.2 - 2024-01-13

Skipping v0.2.1 due to wrong upload on crates.

  • Added support for several options:
    • defaults
    • die_on_bad_params
    • token_escape_char
  • Added functions to modify a Filling enum (examples included)

v0.2.0 - 2023-12-06

This release is not backwards compatible, functions new & render now return Result<String, TemplateNestError> instead of Result<String, String>.

  • Custom error enum.
  • Added examples, expanded test suite, improved docs.
  • Added support for several options:
    • fixed_indent
    • show_labels
    • comment_delimiters

v0.1.0 - 2023-11-26

  • Initial Release.

Other Implementations

Dependencies

~2.4–4MB
~71K SLoC