title: How to output variable in sinatra without <%=
body: <p>In Rails, there exist such helper as "concat" to output variables inside &lt;% %> block for erb remplates. Which helper can I use in Sinatra to perform the same action, without using &lt;%=  %> block ? I mean, something like </p>
  
  <pre><code>&lt;%
  #code
  concat "This should be rendered in HTML, not in console"
  #code
  %&gt;
  </code></pre>
  
  <p>EDIT
  The code in the view is something like this (yep, too much logic, but this is my first app in Ruby):</p>
  
  <pre><code>&lt;% Dir.glob('uploaded/*').select do |entry| %&gt;
      &lt;div class="singleFileItem"&gt;
      &lt;% if File.directory? entry %&gt;
          &lt;img src="images/folder.png"&gt;
      &lt;% else 
         case entry.to_s.split(".")[1]
          when "doc","docx" %&gt;
              &lt;img class="pictogram" src='images/word.png'&gt;
          &lt;% when "xls","xlsx" %&gt;
              &lt;img class="pictogram" src='images/excel.png'&gt;
          &lt;% when "pdf" %&gt;
              &lt;img class="pictogram" src='images/pdf.png'&gt;
          &lt;% when "png", "jpg", "jpeg" %&gt;
              &lt;img class="pictogram" class="imageRaw" src="&lt;%= entry.to_s %&gt;"&gt;
          &lt;% else %&gt;
          &lt;% end
         end %&gt;
         &lt;br&gt;
         &lt;span class="subFileText"&gt;
          &lt;%= entry.to_s.split("/")[1][0..14] %&gt;...
         &lt;/span&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>