-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when passing a variable named 'client' in res.render, jade throws an error #914
Comments
Client is an option, it triggers compiling, but not rendering the template, so that you get a JavaScript function you can render on the client. Unfortunately all I can suggest is that you name the variable something else. We could possibly improve documentation in this area though. |
is that an express option or jade-specific? shouldn't we separate option passing from variable passing? |
Most template libraries do just mix them in one big object like jade does. It's jade specific, although I imagine if people start adapting other template libraries to support compiling for client side use we'll see a lot more libraries have the same issue. |
In 2.0.0 we can completely remove the |
<3 |
This will be looked at in 2.0.0 |
reproduced this across several projects, using current jade version
also experienced by others:
http://stackoverflow.com/questions/10618427/railway-js-jade-crashes-when-a-route-to-client-is-defined#11496334
The text was updated successfully, but these errors were encountered: