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
Torch looks for the files to be generated inside priv/templates/#{format}/phx.gen.html, but the only file in this folder is layout.html.slim. With @brunvez we've opened #156 which addresses this.
What we did was create the missing template files so that they could be copied over by the slime generator. We had to make the slime templates with an .html.eex extension in order to the slime generator to be able to actually find them. You may also see those changes in Mix.Torch where we had to hardcode the format.
We also changed the format setting to be slime since the generator and the file extension had the same name.
Anyway, we hope this is useful and that you plan to keep supporting slime as a template engine. Any feedback and comments are much welcomed!
The text was updated successfully, but these errors were encountered:
Issue:
Running
mix torch.gen.html Blog Post posts title:string body:text --format slim
does not generate any files and produces the following output:Cause:
Torch looks for the files to be generated inside
priv/templates/#{format}/phx.gen.html
, but the only file in this folder islayout.html.slim
. With @brunvez we've opened #156 which addresses this.What we did was create the missing template files so that they could be copied over by the slime generator. We had to make the slime templates with an
.html.eex
extension in order to the slime generator to be able to actually find them. You may also see those changes inMix.Torch
where we had to hardcode the format.We also changed the
format
setting to be slime since the generator and the file extension had the same name.Anyway, we hope this is useful and that you plan to keep supporting slime as a template engine. Any feedback and comments are much welcomed!
The text was updated successfully, but these errors were encountered: