flash_container
Version, currently 0.1.01 version
- 0.1.0latestJan 4, 2019
github.com/imdrasil/flash_container.cr
Simple framework-agnostic flash message container.
4 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
flash_container:
github: imdrasil/flash_container.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
0.27.0- License
- MIT
- Author
- Roman Kalnytskyi <moranibaca@gmail.com>
Dependencies
This version declares no dependencies.
README
# flash_container
Simple framework-agnostic flash message container.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
flash_container:
github: imdrasil/flash_container.cr
```
2. Run `shards install`
## Usage
```crystal
require "flash_container"
# Load flash messages from session
flash = FlashContainer.from_session(session.string?(FlashContainer.key))
flash[:notice] = "Some message"
# Write messages back to session
session.string(FlashContainer.key, flash.to_session)
```
## Contributing
1. Fork it (<https://github.com/imdrasil/flash_container.cr/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
Inspired by `Amber::Router::Flash::FlashStore`.
- [Roman Kalnytskyi](https://github.com/imdrasil) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jan 4, 2019
- Commit
5072c53f5948- Crystal
0.27.0- Indexed
- yes
Dependents
Repository
github.com/imdrasil/flash_container.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1