Skip to content

Instantly share code, notes, and snippets.

@joshgoebel
Created October 19, 2018 01:15
Show Gist options
  • Save joshgoebel/6478367a491c8d7923faad0151683c94 to your computer and use it in GitHub Desktop.
Save joshgoebel/6478367a491c8d7923faad0151683c94 to your computer and use it in GitHub Desktop.
template render*(body: string) :untyped =
if (resp.code == 0):
resp.code = 200
resp.body = body
### How do I write this without changing resp.body? body in the template is wrongly taking it's place also.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment