008
This commit is contained in:
parent
5d23c41724
commit
8d82a69ad4
1 changed files with 13 additions and 3 deletions
16
src/n3.nim
16
src/n3.nim
|
@ -1,7 +1,17 @@
|
||||||
# This is just an example to get you started. A typical hybrid package
|
# This is just an example to get you started. A typical hybrid package
|
||||||
# uses this file as the main entry point of the application.
|
# uses this file as the main entry point of the application.
|
||||||
|
|
||||||
import n3pkg/submodule
|
import
|
||||||
|
nimja,
|
||||||
|
mike,
|
||||||
|
segfaults
|
||||||
|
|
||||||
when isMainModule:
|
"/" -> get:
|
||||||
echo(getWelcomeMessage())
|
compileTemplateFile(getScriptDir() / "view" / "login.nimja")
|
||||||
|
|
||||||
|
"/signup" -> get:
|
||||||
|
compileTemplateFile(getScriptDir() / "view" / "signup.nimja")
|
||||||
|
|
||||||
|
servePublic("src/public", "/public")
|
||||||
|
|
||||||
|
run()
|
Loading…
Reference in a new issue