Skip to content

Commit

Permalink
[bug] Fix issue with Slime show template
Browse files Browse the repository at this point in the history
These lines were being interpreted by the Slime
preprocessor as lines using Embedded engines due to the
fact that they were a single word line ending with a colon.

This fix will manually tag these lines with the "Verbatim text"
line indicator (`|`) so that the preprocessor knows how to handle
them.
  • Loading branch information
cpjolicoeur committed Jun 10, 2020
1 parent d563520 commit 8616cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions priv/templates/slime/phx.gen.html/show.html.slime
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ section#torch-header-and-content
<%= for {k, _} <- schema.attrs do %>
li
.torch-show-label
<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>:
| <%= Phoenix.Naming.humanize(Atom.to_string(k)) %>:
.torch-show-data
= @<%= schema.singular %>.<%= k %>
<% end %>
<% end %>

0 comments on commit 8616cae

Please sign in to comment.