Archives by date
You are browsing the site archives by date.
By Joe Andrieu on October 16, 2013
Short version: <%= user.name ? user.name : ” %> When using EJS as a template language, it can be a bit of a mystery how to concisely display variables if and only if they are defined. For example, if you have a form field that is pre-filled with data from the database, you usually don’t […]