flash_container.cr v0.1.0
flash_container
Simple framework-agnostic flash message container.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
flash_container:
github: imdrasil/flash_container.cr
- Run
shards install
Usage
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
- Fork it (https://github.com/imdrasil/flash_container.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
Inspired by Amber::Router::Flash::FlashStore
.
- Roman Kalnytskyi - creator and maintainer
Repository
flash_container.cr
Owner
Statistic
- 4
- 0
- 0
- 2
- 0
- over 5 years ago
- January 4, 2019
License
MIT License
Links
Synced at
Tue, 07 May 2024 16:09:03 GMT
Languages