Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Sep 16, 2020
1 parent 048b87a commit a4d649a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/app/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
debug=true
port=8080
appName=app
staticDir=/static
secretKey=Pr435ol67ogue
5 changes: 3 additions & 2 deletions examples/app/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ let
settings = newSettings(appName = env.getOrDefault("appName", "Prologue"),
debug = env.getOrDefault("debug", true),
port = Port(env.getOrDefault("port", 8080)),
staticDirs = [env.get("staticDir")],
staticDirs = [],
secretKey = env.getOrDefault("secretKey", "")
)


var app = newApp(settings = settings)
app.addRoute(urls.urlPatterns, "/")
# Be careful with the routes.
app.addRoute(urls.urlPatterns, "")
app.run()
1 change: 0 additions & 1 deletion examples/app/urls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ import ./views


let urlPatterns* = @[
# strip latter
pattern("/", hello)
]
2 changes: 1 addition & 1 deletion logue.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.0"
version = "0.2.2"
author = "flywind"
description = "Command line tools for Prologue."
license = "Apache-2.0"
Expand Down
1 change: 0 additions & 1 deletion src/loguepkg/create.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ proc getEnvContent(appName: string): string =
debug=true
port=8080
appName={appName}
staticDir=/static
secretKey=Pr435ol67ogue
"""

Expand Down
2 changes: 1 addition & 1 deletion src/loguepkg/tml/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let
settings = newSettings(appName = env.getOrDefault("appName", "Prologue"),
debug = env.getOrDefault("debug", true),
port = Port(env.getOrDefault("port", 8080)),
staticDirs = [env.get("staticDir")],
staticDirs = [],
secretKey = env.getOrDefault("secretKey", "")
)
Expand Down

0 comments on commit a4d649a

Please sign in to comment.