title: Sinatra pass variables to erb
body: <p>There's two ways I can do this.</p>
  
  <p>First is to use <code>:locals =&gt; {....}</code> and other is to use <code>@var_name</code>. I am just wondering which one is better/preferred? I couldn't find the answer to this anywhere.</p>
  
  <p>Thanks</p>