Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianrubisch/sr-template-reflex
https://github.com/julianrubisch/sr-template-reflex
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/julianrubisch/sr-template-reflex
- Owner: julianrubisch
- License: mit
- Created: 2021-05-04T09:59:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T10:39:06.000Z (over 3 years ago)
- Last Synced: 2024-12-12T14:34:44.754Z (15 days ago)
- Language: Ruby
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Compose a UI using page morphs
**How?**
- UI components ("templates") are inserted/removed using two reflex actions, and are identified by `uuid`s
- The `session` is used to persist/manage them**Caveat**
Note that in a real-world app, you'd probably want to use model partials and empty model instances to construct your UI (the `Template` class acts as a stand-in for both model and partial)
**Variations**
Use [kredis](https://github.com/rails/kredis) as ephemeral persistence store