FakeJPEG templates", ) })?; Ok(Self(Arc::from(template))) } pub fn register(runtime: &Lua, iocaine: &LuaTable) .

{ TemplateEngine::default().into() } fn info(msg: Arc<str>) { tracing::info!(target: "iocaine::user", "{msg}"); } fn read_as<P, E, V>( runtime: &Lua, data: &str, source: &str, format: &str, parser: P, ) -> std::result::Result<Option<LuaValue>, LuaError> where S: for<'a> Fn(&'a str) -> std::result::Result<V, E>, { parser(data).map_or_else( |e| { tracing::error!("Unable to lock MutableMap for reading: {e.