Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # example.nim
- import htmlgen
- import jester
- proc mytest(): string
- routes:
- get "/":
- resp h1("Hello world")
- get "/add":
- resp mytest()
- proc mytest(): string {.gcsafe.} =
- return "hi"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement