Forbes Lindesay

Results 267 comments of Forbes Lindesay

https://github.com/pelotom/runtypes/pull/162 looks like a pretty good start. I'm inclined not to attempt to make it a generic parameter, since it doesn't really affect the TypeScript type of the parsed value....

What do you mean by "is skipped". The line `if(req.user.id == req.params.user_id) return true;` should be executed when someone attempts to request `/user/0` (providing that the request hasn't already been...

Looks like I can pretty directly copy https://github.com/pelotom/runtypes/pull/161 Also requested in https://github.com/pelotom/runtypes/issues/148

And how do you propose we resolve relative includes without it? Just resolving from the current working directory is extremely hacky.

The correct way to solve it is to pass in `opyions.filename`, which should be the filename of the EJS file you are compiling/rendering.

Compile on the server using node.js then use the compiled code on the client side. Includes will then work fine.

Sorry, didn't notice the issue. Pinging me on twitter is often good for super high priority issues like this. I'll push out a fix shortly.

Hi @mcollina sorry it took a long time to get back to you on the last set of changes. There were a few things to fix up before this was...