Questions tagged [prologue]

For questions about the web framework. Use with the [nim-lang] tag.

Prologue is a web framework for the Nim programming language. (See ).

Links:

5 questions
0
votes
0 answers

Nim - Data not being able to transfer between functions using nim prologue

I have a HTML and JS code written and is fetching data from the link '/availability-json'

Your Reservation

me0045
  • 1
  • 1
0
votes
1 answer

How to set up a small websocket client-server example with nim/prologue?

I am using the prologue framework of the nim programming language for my webserver and want to play around with websockets. There is a section about websockets in the prologue docs but that mostly tells me how to set up a handler for establishing a…
Philipp Doerner
  • 1,090
  • 7
  • 24
0
votes
1 answer

Why is 'YY_DO_BEFORE_ACTION' undefined by Bison's %code requires prologue?

I have a compiler project using Bison (3.8.2) and Flex (2.6.4) built using Cygwin on Windows 10. Without using the %code requires prologue, my project will build and run as expected. Once I add the %code requires prologue, I get compiler errors when…
afarley
  • 781
  • 6
  • 26
-1
votes
1 answer

Prologue -Webframework - How to set thread-local variables for logging when compiling with `--threads:on` flag?

I am writing a web-application in nim, using the web-framework prologue and the ORM norm. I've found that the log-messages of prologue and norm that normally appear in the terminal when starting up the application disappear, when you compile with…
Philipp Doerner
  • 1,090
  • 7
  • 24
-1
votes
1 answer

Nim - How to access raw POST request body in prologue framework

I recently picked up Nim and am in the process of re-implementing an existing web-application of mine to get some experience in the language. This web-application used JWT for authentication, with the typical split into an access-token and a…
Philipp Doerner
  • 1,090
  • 7
  • 24