tera-plaintext-filters

Crates.iotera-plaintext-filters
lib.rstera-plaintext-filters
version0.1.1
sourcesrc
created_at2023-06-17 15:30:19.983932
updated_at2023-06-29 18:52:17.750805
descriptionFilters for the Tera engine, useful for plaintext file generation.
homepagehttps://github.com/migmedia/tera-plaintext-filters
repository
max_upload_size
id892982
size20,552
Micha Glave (migmedia)

documentation

README

tera-plaintext-filters

crates.io crates.io Documentation

Filters for the Tera engine, useful for plaintext file generation.

Howto generate plaintext files with tera with alignment.

Example

To render such table:

| No |      *Name*        |  Score |
|----|--------------------|--------|
| 1. |      Charly        |   3000 |
| 2. |     Alexander      |    800 |
| 3. |     Josephine      |    760 |

Tera Template

| No |    *Name*   |     Score |
|----|-------------|-----------|
{% for member in team | slice(end=10) %}
| {{- loop.index ~ '.' | left_align(length=4) -}} | {{- member.name | center(length=20) -}} | {{- member.score | right_align(length=10) -}} |
{% endfor %}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt