title: Access LocalStorage value in ejs file
body: <p>I am trying to conditionally display some html where I want to check the value passed from my server, against my local storage value. I can't figure out how to get access to this local storage value.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;% for(var i=0; i &lt; list.length; i++) { %&gt;
    &lt;%
      checkUser = function(passed_in_UID) {
        return(passed_in_UID == localStorage.getItem("UID"));
      };
    %&gt;
    &lt;% if(checkUser(list[i].val().UID)) { %&gt;
      &lt;p&gt;Show this tag if conditional true&lt;/p&gt;
    &lt;% } %&gt;
  &lt;% } %&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I keep getting internal 500 error because I guess localStorage isn't valid in ejs. How do I grab this value then?</p>