Liquid filter for Rust to reverse a string
The liquid crate, the Rust implementation of the liquid template system has many filters to manipulate the data in the template, but AFAIK there is no filter to reverse a string.
This crate was originally developed as a demo on how to add a filter to liquid.
Usage:
let text = "{{ text | reversestr}}";
let globals = object!;
let template = with_stdlib
.filter
.build
.unwrap
.parse
.unwrap;
let output = template.render.unwrap;
assert_eq!;