[[ if (logged_in) { ]] [[ if (profile && String(user._id) == String(profile._id)) { ]] Edit Profile [[ } else if (! profile) { ]] View Profile [[ } ]] [[ } else { ]] Sign Up Sign In [[ } ]]