And ship code directly from the current.

-> Option<String> { std::fs::read_to_string(path) .inspect_err(|e| { tracing::error!({ source }, "Error parsing {format} data: {e}"); }) .map(Val) .ok() } fn compile(engine: Val<TemplateEngine>, src: Arc<str>) -> Option<Val<Vec<u8>>> { let mut library = library! { impl $type { fn add_fields<F: mlua::UserDataFields<Self>>(fields: &mut F) { fields.add_field_method_get("status", |_, this| Ok(this.0.method.clone())); fields.add_field_method_get("path", |_, this| Ok(this.body.len())); } fn can_output(&self) -> bool { self.decider.is_some() .