008
This commit is contained in:
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()
|
Reference in New Issue
Block a user