I'm writing some helpers for my own web app, and decided to write it up with Nim JS support.
And reading karax source code for finding how to fetch in Nim. I found ajaxGET and inside that proc, there newRequest has been called, but I canNot find where 'newRequet' defined.
Any one could help? newRequest definition OR where is howto compile fetch document.
Thanks. I gave it a little try.
For simple 'GET' fetch, it works and JS code is compact, perfectly. If I do some 'POST', the JS code starts to get fat. I don't think its extra large, but a bit messy.
Any way it works. I can choose going along with this or just using karax. Thank you so much. I would not find this by myself.
No idea about this coz I have been afraid of pragma thing all the time.
Tried compiling some procs, it works! Maybe I can stick to use this feature around. Thank you !