mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Update
This commit is contained in:
commit
6896cb413a
2 changed files with 19 additions and 19 deletions
|
@ -2,7 +2,7 @@
|
||||||
title: Kemal
|
title: Kemal
|
||||||
email: dogruyolserdar@gmail.com
|
email: dogruyolserdar@gmail.com
|
||||||
description: 'Lightning Fast, Super Simple web framework for Crystal. Inspired by Sinatra'
|
description: 'Lightning Fast, Super Simple web framework for Crystal. Inspired by Sinatra'
|
||||||
baseurl: "http://serdardogruyol.com/kemal/" # the subpath of your site, e.g. /blog
|
baseurl: "/kemal" # the subpath of your site, e.g. /blog
|
||||||
url: "" # the base hostname & protocol for your site
|
url: "" # the base hostname & protocol for your site
|
||||||
twitter_username: sdogruyol
|
twitter_username: sdogruyol
|
||||||
github_username: sdogruyol
|
github_username: sdogruyol
|
||||||
|
@ -18,11 +18,11 @@ collections:
|
||||||
|
|
||||||
nav_bars:
|
nav_bars:
|
||||||
- title: "Documents"
|
- title: "Documents"
|
||||||
url: "/docs/getting_started"
|
url: "/kemal/docs/getting_started"
|
||||||
- title: "Blog"
|
- title: "Blog"
|
||||||
url: "/blog"
|
url: "/blog"
|
||||||
- title: "Github"
|
- title: "Github"
|
||||||
url: "http://github.com/sdogruyol/kemal"
|
url: "https://github.com/sdogruyol/kemal"
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- title: "How to connect to Database"
|
- title: "How to connect to Database"
|
||||||
|
|
28
index.html
28
index.html
|
@ -8,11 +8,11 @@ layout: home
|
||||||
Kemal
|
Kemal
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
Kemal is a micro web framework written in Crystal language.
|
Kemal is a fast, easy to use micro web framework written in Crystal language.
|
||||||
<br />
|
<br />
|
||||||
It's strongly inspired from Sinatra.
|
It's inspired from Sinatra.
|
||||||
</h2>
|
</h2>
|
||||||
<a href="/docs/getting_started" class="button">Start Now!</a>
|
<a href="/kemal/docs/getting_started" class="button">Start Now!</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrapper block">
|
<div class="wrapper block">
|
||||||
|
@ -20,20 +20,20 @@ layout: home
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h1>Super Simple</h1>
|
<h1>Super Simple</h1>
|
||||||
|
|
||||||
{% highlight ruby %}
|
{% highlight ruby %}
|
||||||
require "kemal"
|
require "kemal"
|
||||||
|
|
||||||
# Matches GET "http://host:port/"
|
# Matches GET "http://host:port/"
|
||||||
get "/" do
|
get "/" do
|
||||||
"Hello World!"
|
"Hello World!"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a WebSocket handler.
|
# Creates a WebSocket handler.
|
||||||
# Matches "ws://host:port/socket"
|
# Matches "ws://host:port/socket"
|
||||||
ws "/socket" do |socket|
|
ws "/socket" do |socket|
|
||||||
socket.send "Hello from Kemal!"
|
socket.send "Hello from Kemal!"
|
||||||
end
|
end
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
@ -42,7 +42,7 @@ layout: home
|
||||||
<li>Support all REST verbs</li>
|
<li>Support all REST verbs</li>
|
||||||
<li>Websocket support</li>
|
<li>Websocket support</li>
|
||||||
<li>Request/Response context, easy parameter handling</li>
|
<li>Request/Response context, easy parameter handling</li>
|
||||||
<li>Middlewares</li>
|
<li>Custom and built-in middlewares</li>
|
||||||
<li>Built-in JSON support</li>
|
<li>Built-in JSON support</li>
|
||||||
<li>Built-in static file serving</li>
|
<li>Built-in static file serving</li>
|
||||||
<li>Built-in view templating via ecr</li>
|
<li>Built-in view templating via ecr</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue