mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
v0.4.0
- Built-in super simple & fast WebSocket support - Remove experimental fork mode - Improve view macros (Thanks @f)
This commit is contained in:
parent
44af664748
commit
d50d305e99
2 changed files with 10 additions and 3 deletions
11
README.md
11
README.md
|
@ -4,18 +4,25 @@
|
|||
[![Join the chat at https://gitter.im/sdogruyol/kemal](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sdogruyol/kemal?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
Lightning Fast, Super Simple web framework for [Crystal](http://www.crystal-lang.org).
|
||||
Inspired by [Sinatra](http://www.sinatrarb.com/)
|
||||
Inspired by [Sinatra](http://www.sinatrarb.com/) but with superior performance and built-in WebSocket support.
|
||||
|
||||
Kemal is under heavy development and currently supports Crystal 0.9.0.
|
||||
Kemal is under heavy development and currently supports Crystal 0.9.1.
|
||||
|
||||
# Super Simple <3
|
||||
|
||||
```ruby
|
||||
require "kemal"
|
||||
|
||||
# Matches GET "http://host:port/"
|
||||
get "/" do
|
||||
"Hello World!"
|
||||
end
|
||||
|
||||
# Creates a WebSocket handler.
|
||||
# Matches "ws://host:port/socket"
|
||||
ws "/socket" do |socket|
|
||||
socket.send "Hello from Kemal!"
|
||||
end
|
||||
```
|
||||
|
||||
Build and run!
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: kemal
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
|
||||
author:
|
||||
- Serdar Dogruyol <dogruyolserdar@gmail.com>
|
||||
|
|
Loading…
Reference in a new issue