-
-
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
idea for ya #167
Comments
I did this for |
yeah that works, i mean #{these} statements |
ah! yeah I may have missed interpolation, I'll check |
actually im not sure these should be blank, for example you end up with the awkward gaps " Just a test Just a test Just a 0 test " (might not show well here) , whereasfoo= undefined should be blank im not sure hello #{name} should be, you pretty much always want something there
|
but what if you are outputting a list of things from a database ul li Name: #{user.accountInfo.firstName + user.accountInfo.lastName} li Title: #{user.accountInfo.title} li Company: #{user.accountInfo.company} li Address: #{user.accountInfo.address} li City: #{user.accountInfo.city} li State: #{user.accountInfo.state} li Zip: #{user.accountInfo.zip} li Phone: #{user.accountInfo.phone} li Fax: #{user.accountInfo.fax} li Email: #{user.accountInfo.email} maybe a === against null or undefined? |
yeah that is true |
another thought is that the interpolations differ depending on = or #{} are different which may be confusing (were for me) |
maybe this implemented but I haven't found it yet, could there be a way to output the value of a variable and have it swallowed up if its null, undefined, NaN and just output nothing instead of those values?
The text was updated successfully, but these errors were encountered: