mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #2684 from jeffkreeftmeijer/eex
Add EEx (Embedded Elixir)
This commit is contained in:
		| @@ -250,6 +250,7 @@ vendor/grammars/elixir-tmbundle: | ||||
| - source.elixir | ||||
| - text.elixir | ||||
| - text.html.elixir | ||||
| - text.html.eex | ||||
| vendor/grammars/erlang.tmbundle: | ||||
| - source.erlang | ||||
| - text.html.erlang.yaws | ||||
|   | ||||
| @@ -1333,6 +1333,16 @@ HTML+Django: | ||||
|   - htmldjango | ||||
|   ace_mode: django | ||||
|  | ||||
| HTML+EEX: | ||||
|   type: markup | ||||
|   tm_scope: text.html.eex | ||||
|   group: HTML | ||||
|   aliases: | ||||
|   - eex | ||||
|   extensions: | ||||
|   - .eex | ||||
|   ace_mode: html_eex | ||||
|  | ||||
| HTML+ERB: | ||||
|   type: markup | ||||
|   tm_scope: text.html.erb | ||||
|   | ||||
							
								
								
									
										26
									
								
								samples/HTML+EEX/index.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								samples/HTML+EEX/index.html.erb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| <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) %> | ||||
		Reference in New Issue
	
	Block a user