anathema

Crates.ioanathema
lib.rsanathema
version0.1.1-alpha
sourcesrc
created_at2022-08-04 18:02:21.161279
updated_at2022-08-04 20:35:52.408277
descriptionText User Interface library (TUI) with a template language and runtime
homepagehttps://github.com/togglebyte/anathema
repositoryhttps://github.com/togglebyte/anathema
max_upload_size
id638855
size450,166
Togglebit (togglebyte)

documentation

https://togglebyte.github.io/anathema-guide/

README

Anathema

A TUI library with a custom template language and runtime

Getting started

hstack [width: 40, height: 10]:
    // Left pane
    expand [factor: 1]:
        border:
            vstack:
                text: "Item 1"
                text: "Item 2"
                text: "Item 3"

    // Right pane
    expand [factor: 4]:
        border:
            expand:
                text: "This isn't where I parked my car!"

output

┌──────┐┌──────────────────────────────┐
│Item 1││This isn't where I parked my  │
│Item 2││car!                          │
│Item 3││                              │
└──────┘│                              │
        │                              │
        │                              │
        │                              │
        │                              │
        └──────────────────────────────┘
Commit count: 54

cargo fmt