kemal-flash v0.2.1
forked from neovintage/kemal-flashkemal-flash
A fork of the kemal-flash library that I created because the original not working anymore and has not received any updates for a long time.
kemal-flash
provides a way to pass temporary information between actions. Anything that's placed in the flash will be cleared out at the end of the next action. kemal-flash
depends on kemal-session
. Make sure kemal-session
is included before including kemal-flash
.
Installation
Add this to your application's shard.yml
:
dependencies:
kemal-flash:
github: crystal-garage/kemal-flash
branch: develop
Usage
require "kemal"
require "kemal-session"
require "kemal-flash"
get "/" do |env|
env.flash["notice"] = "welcome"
end
get "/check_flash" do |env|
env.flash["notice"]?
end
Contributing
- Fork it ( https://github.com/crystal-garage/kemal-flash/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
- neovintage Rimas Silkaitis - creator, maintainer
- mamantoha Anton Maminov - maintainer
Repository
kemal-flash
Owner
Statistic
- 3
- 0
- 0
- 1
- 4
- about 2 years ago
- July 14, 2020
License
MIT License
Links
Synced at
Wed, 06 Nov 2024 21:36:15 GMT
Languages