Advertisement
Guest User

Untitled

a guest
Aug 30th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.20 KB | None | 0 0
  1. # example.nim
  2. import htmlgen
  3. import jester
  4.  
  5. proc mytest(): string
  6.  
  7. routes:
  8.   get "/":
  9.     resp h1("Hello world")
  10.   get "/add":
  11.     resp mytest()
  12.  
  13. proc mytest(): string {.gcsafe.} =
  14.   return "hi"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement