mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Update tutorial.md
This commit is contained in:
parent
e4c6b12411
commit
da4e38ab0f
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ cd awesome_web_project
|
||||||
|
|
||||||
Then add *kemal* to the `shard.yml` file as a dependency.
|
Then add *kemal* to the `shard.yml` file as a dependency.
|
||||||
|
|
||||||
```
|
```yml
|
||||||
dependencies:
|
dependencies:
|
||||||
kemal:
|
kemal:
|
||||||
github: sdogruyol/kemal
|
github: sdogruyol/kemal
|
||||||
|
@ -35,7 +35,7 @@ shards install
|
||||||
|
|
||||||
Open `awesome_web_project/src/awesome_web_project.cr` and require `kemal` to use Kemal.
|
Open `awesome_web_project/src/awesome_web_project.cr` and require `kemal` to use Kemal.
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
require 'kemal'
|
require 'kemal'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ require 'kemal'
|
||||||
|
|
||||||
Do some awesome stuff with awesome Kemal.
|
Do some awesome stuff with awesome Kemal.
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
get "/" do
|
get "/" do
|
||||||
"Hello World!"
|
"Hello World!"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue