You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...or just plain .heex syntax with no .slime syntax at all:
# lib/phoenix_slime_test_web/templates/dog/index.html.hslime
<h1>Listing Dogs</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Breed</th>
<th>Age</th>
<th>Weight</th>
<th>Link</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for dog <- @dogs do %>
<tr>
<td><%= dog.name %></td>
<td><%= dog.breed %></td>
<td><%= dog.age %></td>
<td><%= dog.weight %></td>
<td><%= dog.link %></td>
<td>
<span><%= link "Show", to: Routes.dog_path(@conn, :show, dog) %></span>
<span><%= link "Edit", to: Routes.dog_path(@conn, :edit, dog) %></span>
<span><%= link "Delete", to: Routes.dog_path(@conn, :delete, dog), method: :delete, data: [confirm: "Are you sure?"] %></span>
</td>
</tr>
<% end %>
</tbody>
</table>
<span><%= link "New Dog", to: Routes.dog_path(@conn, :new) %></span>
Is generating .slime templates not supported yet or am I doing something wrong? I am new to Phoenix so I prefer to rely on generators for my templates.
The text was updated successfully, but these errors were encountered:
Hello @rsieb - Sorry for the long delay. As you've probably discovered, no, I didn't do anything special to implement scaffolds/generators in this version.
Now that Liveview 0.18 is out, I am seeing more interest in this module and hoping to get some contributions to add things like this. I have also started working on the package again to get it playing nicely with 0.18 etc.
Hi, I have been trying to use your fork "tensiondriven/phoenix_slime" to get slim support in Phoenix 1.6.6.
But it seems this fork does not support generating correct .sheex templates yet?
E.g. when issuing this command in your phoenix_slime_test demo app:
mix phx.gen.html.slime Pets Dog dogs name:string breed:string age:integer weight:integer link:string
...it generates .hslime files in stead of .sheex files:
...and the contents of the files also look like a weird mixture between .heex syntax and .slime syntax:
...or just plain .heex syntax with no .slime syntax at all:
Is generating .slime templates not supported yet or am I doing something wrong? I am new to Phoenix so I prefer to rely on generators for my templates.
The text was updated successfully, but these errors were encountered: