neovintage / kemal-flash Goto Github PK
View Code? Open in Web Editor NEWTemporary storage between actions in kemal
License: MIT License
Temporary storage between actions in kemal
License: MIT License
Kemal-flash doesn't seem to keep flash on redirect. I forked, updated the shards, and ran spec and got this:
Failures:
1) Kemal::Flash should handle updates to flash
Failure/Error: response.body.should eq("{\"values\":{\"lucy\":\"linus\"},\"discard\":[]}")
Expected: "{\"values\":{\"lucy\":\"linus\"},\"discard\":[]}"
got: "{\"values\":{},\"discard\":[]}"
# spec/kemal-flash_spec.cr:20
2) Kemal::Flash should keep flash on a redirect
Failure/Error: response.body.should eq("302")
Expected: "302"
got: ""
# spec/kemal-flash_spec.cr:25
Finished in 5.43 milliseconds
14 examples, 2 failures, 0 errors, 0 pending
Failed examples:
crystal spec spec/kemal-flash_spec.cr:15 # Kemal::Flash should handle updates to flash
crystal spec spec/kemal-flash_spec.cr:23 # Kemal::Flash should keep flash on a redirect
Are you still maintaining this shard? If so, although I'm not a developer, I would like to help. This is too cool a project to let languish, imho.
Thank you.
Is this broken with the latest Crystal version? I can't get it to work. I have kemal-sessions
required first in my main application. Using Google Chrome to browse. Am I missing something basic?
get "/check_flash" do |env|
env.flash["notice"] = "welcome"
env.redirect "/"
end
Thanks for any insight.
Are folks still using this code? I went through a period where I didn't have much time. I'm happy to get it updated if there's interest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.