mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	EEx is embedded Elixir: http://elixir-lang.org/docs/v1.0/eex/. Here's some in-the-wild usage on Github: https://github.com/search?p=100&q=extension%3Aeex+NOT+nothack&ref=searchresults&type=Code&utf8=✓ This uses the "html_elixir" Ace mode, which was added in this pull request on the Ace project: https://github.com/ajaxorg/ace/pull/2696
		
			
				
	
	
		
			27 lines
		
	
	
		
			595 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			595 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <h1>Listing Books</h1>
 | |
|  
 | |
| <table>
 | |
|   <tr>
 | |
|     <th>Title</th>
 | |
|     <th>Summary</th>
 | |
|     <th></th>
 | |
|     <th></th>
 | |
|     <th></th>
 | |
|   </tr>
 | |
| 
 | |
| <%= for book <- @books do %>
 | |
|   <tr>
 | |
|     <%# comment %>
 | |
|     <td><%= book.title %></td>
 | |
|     <td><%= book.content %></td>
 | |
|     <td><%= link "Show", to: book_path(@conn, :show, book) %></td>
 | |
|     <td><%= link "Edit", to: book_path(@conn, :edit, book) %></td>
 | |
|     <td><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %></td>
 | |
|   </tr>
 | |
| <% end %>
 | |
| </table>
 | |
|  
 | |
| <br />
 | |
|  
 | |
| <%= link "New book", to: book_path(@conn, :new) %>
 |