Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No torch.html generated when used with Phoenix 1.4 #100

Closed
AndreasBraun2015 opened this issue Nov 20, 2018 · 4 comments
Closed

No torch.html generated when used with Phoenix 1.4 #100

AndreasBraun2015 opened this issue Nov 20, 2018 · 4 comments
Milestone

Comments

@AndreasBraun2015
Copy link

Thanks for the great packages, looks very promising.

I went through the readme with phoenix 1.4.

It looks like the torch.html is not generated in the layout folder.

Is the torch.html somewhere in your repo such that I can add it manually?

@zberkom
Copy link
Contributor

zberkom commented Nov 20, 2018

@AndreasBraun2015 Okay, thanks for pointing that out! Did you run the mix torch.install task? If so, it should copy this layout into torch.html. I'll do some testing to confirm this issue, but in the mean time you can grab the layout here: https://github.com/infinitered/torch/blob/master/priv/templates/eex/layout.html.eex

@AndreasBraun2015
Copy link
Author

Thank you for your answer.

Yes, I run mix torch.install but it did not work for me.

Thank you for attaching the layout.html

@user1007017
Copy link

user1007017 commented Aug 12, 2019

Using Phoenix v1.4.9 I had to set the application name (in my case project root directory) for it to work. Template file was generated flawlessly.

in config.exs:

config :torch,
       otp_app: :myappname, # <---------here
       template_format: "eex"

@cpjolicoeur cpjolicoeur added this to the v3.0.0 milestone Sep 13, 2019
@cpjolicoeur
Copy link
Member

This works correctly in Phoenix 1.4 when following the current directions in the README.

Closing for now.

rafaltrojanowski added a commit to rafaltrojanowski/kickstart that referenced this issue Dec 17, 2020
1. Run: mix torch.gen.html Blog Post posts --no-schema --no-context
--web Admin title:string body:text published_at:datetime
published:boolean views:integer slug:string
2. See: mojotech/torch#163 (comment)
3. See: mojotech/torch#100 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants