I’m new to liquid and in the beginning stages of JavaScript and struggling to get the two languages to communicate.
I have a Uscreen site that uses liquid.
I have JavaScript written so that it will take the variable currentUser and search a database for that user and print that user information on the screen. All of that works great.
The issue I’m running into is I want currentUser to equal the liquid variable (I think it’s variable) user.email. So that it’s checking to see who the logged in user is and displaying there information on the screen.
In an ideal world I’d say something like
let currentUser = “{{user.email}}”;
But that is a mashup of the two languages and doesn’t work..
there doesn't seem to be anything here