pub fn register_tera_function(tera: &mut Tera)Expand description
Register rcms_image_url(media_id, filter) on the user’s Tera
instance. Templates write
<img src="{{ rcms_image_url(media_id=42, filter="fill-300x200") }}">
and the URL gets resolved lazily by the
crate::rendition_route::router route. The function only
validates the filter spec; it does NOT touch the DB, so it stays
sync + cheap.
Call once during Tera setup, alongside
rustango_cms::admin::register_templates(&mut tera).