pub type ContextFn = Rc<dyn Fn(&App) -> Value>;
Gives the script the context: what is shown now.
pub struct ContextFn { /* private fields */ }