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 @@ | ||||||
| [](https://gitter.im/sdogruyol/kemal?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | [](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). | 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 | # Super Simple <3 | ||||||
| 
 | 
 | ||||||
| ```ruby | ```ruby | ||||||
| require "kemal" | require "kemal" | ||||||
| 
 | 
 | ||||||
|  | # Matches GET "http://host:port/" | ||||||
| get "/" do | get "/" do | ||||||
|   "Hello World!" |   "Hello World!" | ||||||
| end | end | ||||||
|  | 
 | ||||||
|  | # Creates a WebSocket handler. | ||||||
|  | # Matches "ws://host:port/socket" | ||||||
|  | ws "/socket" do |socket| | ||||||
|  |   socket.send "Hello from Kemal!" | ||||||
|  | end | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Build and run! | Build and run! | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| name: kemal | name: kemal | ||||||
| version: 0.3.0 | version: 0.4.0 | ||||||
| 
 | 
 | ||||||
| author: | author: | ||||||
|   - Serdar Dogruyol <dogruyolserdar@gmail.com> |   - Serdar Dogruyol <dogruyolserdar@gmail.com> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue