use prism-tomorrow.css
This commit is contained in:
22
docs/_style/prism-master/examples/prism-erb.html
Normal file
22
docs/_style/prism-master/examples/prism-erb.html
Normal file
@ -0,0 +1,22 @@
|
||||
<h2>Full example</h2>
|
||||
<pre><code><%# index.erb %>
|
||||
<h1>Listing Books</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Summary</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @books.each do |book| %>
|
||||
<tr>
|
||||
<td><%= book.title %></td>
|
||||
<td><%= book.content %></td>
|
||||
<td><%= link_to "Show", book %></td>
|
||||
<td><%= link_to "Edit", edit_book_path(book) %></td>
|
||||
<td><%= link_to "Remove", book, method: :delete, data: { confirm: "Are you sure?" } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table></code></pre>
|
Reference in New Issue
Block a user