Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guvencenanguvenal authored Apr 4, 2017
1 parent c967d2a commit d87da62
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ Model name must be capitalized case (first letter is upper, other letters is low
Welcomemodel.cr
```
class Welcomemodel < Core::Model
init Welcomemodel, Core::Model::Scope::Singleton
init Welcomemodel, Core::Model::Scope::Singleton
def hello
puts "hello"
end
def hello
puts "hello"
end
end
```

Expand All @@ -83,12 +83,12 @@ class Welcomecontroller < Core::Controller
action "index" do
Core.loader.library([Customlib, Library::Crypto]) do |val|
val[Customlib].as(Customlib).hello
Core.loader.library([Customlib, Library::Crypto]) do |val|
val[Customlib].as(Customlib).hello
end
Core.loader.model(Welcomemodel) do |model|
model.deneme
Core.loader.model(Welcomemodel) do |model|
model.deneme
end
Core.loader.view(self, Welcomeview)
Expand All @@ -106,16 +106,15 @@ class Welcomeview < Core::View
init "Welcome.ecr"
def load
if (view_params["key"] == "value")
puts "hello" #put hello on terminal
end
if (view_params["key"] == "value")
puts "hello" #put hello on terminal
end
end
end
```
Welcome.ecr
```
Selam, <%= @view_params["key"] %>! # value
Selam, <%= @view_params["key"] %>! # value
```

## Run, go go go
Expand Down

0 comments on commit d87da62

Please # to comment.