presentation.stpl.html raw

<section class="readme">
  <h2 class="readme-title">
    <% if let Some(url) = self.title_url { %><a href="<%= url %>"><%= self.title %></a><% } else { %><%= self.title %><% } %>
    <a class="raw-link" href="<%= self.raw_url %>">raw</a>
  </h2>
  <% match self.presentation { Presentation::Markdown(html) => { %>
    <div class="markdown"><%- html %></div>
  <% } Presentation::Text(text) => { %>
    <pre class="plain"><%= text %></pre>
  <% } Presentation::Image => { %>
    <p class="file-image"><img src="<%= self.raw_url %>" alt=""></p>
  <% } Presentation::Binary => { %>
    <p class="empty">This is a binary file. <a href="<%= self.raw_url %>">Download it.</a></p>
  <% } Presentation::TooLarge => { %>
    <p class="empty">This file is too large to show here. <a href="<%= self.raw_url %>">Download it.</a></p>
  <% } } %>
</section>