pub fn from_value(v: Value) -> Self {
        Self {
            state: v,
            ty: PhantomData,
        }
    }
Creates a new template state from a pre-deserialized [`Value`].

Note that end users should almost always prefer `::from_str()`, and this
is intended primarily for server integrations.
packages/perseus/src/state/template_state.rs