title: Access server-side javascript variable for manipulation with client side javascript
body: <p>Using sails.js as a framework for a node.js app I'm building.</p>
  
  <p>I'm trying to retrieve information previously set by a user (i.e. settings for my app) from the back end, and then use these settings in my client-side javascript.</p>
  
  <p>I currently have a controller which retrieves the information from the database and passes it to the view where it will be needed.</p>
  
  <pre><code>return res.view('dashboard', { configs: configurations });
  </code></pre>
  
  <p>I know it is accessible when rendering html, but don't know how to pass it to the javascript environment running on the browser.</p>
  
  <p>Any tips would be amazing!</p>
  
  <p>To clarify, I'm not trying to render this information in the html page (i.e. the method of using <code>&lt;%= variable %&gt;</code>, I want to use it in the javascript running on the page.</p>