I’m wondering as user() is an Object that can be used all over
what would be the best and secure way to make it available across all tempaltes ?
{{app.user}} doesn’t seem to work
or should I put in Session ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could make a universal handlebar helper in your client javascript such as :
And anywhere in your templates use it as long as the user is logged in, for instance (if you have a profile name set up):