node-static
node-static copied to clipboard
response body
I want to edit the response body before sending out. I can not find any event which returns the body to the callback how do I achieve this?
I cannot figure this out either and it is maddening. I don't want to use express, but I would love to just replace some {{TEMPALTE TEXT}}... Maybe there is a solution?
Also wondering about this, would like to do a simple regex replace on a static file I'm serving for local development. Any ideas?
Trying to insert a variable with value in the response.. Any Idea on how to do it while serving a HTML file?