switchable edn example

This commit is contained in:
🪞👃🪞 2025-01-05 16:51:26 +01:00
parent 4ae31bbba0
commit ce4574ed78
8 changed files with 105 additions and 21 deletions

View file

@ -12,7 +12,7 @@ fn main () -> Usually<()> {
pub struct Example;
impl EdnLayout<Tui> for &Example {
impl EdnViewData<Tui> for &Example {
fn get_content <'a> (&'a self, sym: &'a str) -> RenderBox<'a, Tui> {
Box::new(Thunk::new(move||match sym {
":hello" => "Hello",