pub fn mixed_case<S: BuildHasher>(
value: &Value,
_: &HashMap<String, Value, S>,
) -> Result<Value>Expand description
Converts text into mixedCase.
ยงExample
use tera::{Context, Tera};
use tera_text_filters::mixed_case;
let mut ctx = Context::new();
ctx.insert("i", "Some text");
let mut tera = Tera::default();
tera.register_filter("mixed_case", mixed_case);
let i = "{{ i | mixed_case }}";
let rendered = tera.render_str(i, &ctx).unwrap();
assert_eq!(rendered, "someText");