pub fn random_char(_args: &HashMap<String, Value>) -> Result<Value>Expand description
A Tera function to generate a random char.
§Example usage
ⓘ
use tera::{Context, Tera};
use tera_rand::random_char;
let mut tera: Tera = Tera::default();
tera.register_function("random_char", random_char);
let context: Context = Context::new();
let rendered: String = tera.render_str("{{ random_char() }}", &context).unwrap();