-
Notifications
You must be signed in to change notification settings - Fork 64
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
partials ? #7
Comments
Hi @smeevil, it should be supported. PhoenixSlim (and SlimFast) translate Slim to EEx and rely on EEx to handle the bulk of the work, rendering partial should work so long as the appropriate EEx is generated. Are you having problems? If so you might have encountered a bug. |
As soon as i try to |
Hi @smeevil do you have a sample project I could look at? I'm wondering if something is being included that doesn't need to be, PhoenixSlim is no different from Chris McCord's PhoenixHaml. In addition to the |
The error only seems to pop up when using the render in a layout (templates/layout/app.html.slim) |
@smeevil that's interesting and not something I have experienced. I'm hoping to set some time aside this week to put together a sample Phoenix + PhoenixSlim project which I hope allow me to repo this issue. I'll ping you on the repo so you can give me feedback on setting up your scenario. |
Hi @smeevil, sorry for the delay I've been very busy. I have put together a sample project at doomspork/phoenix_slim_example, can you take a look at it? I tried to reproduce your issue in the layout here but everything appears to be working. |
@smeevil have you had an opportunity to check out the sample project? What version of Elixir and Phoenix are you using btw? |
I'm closing this for now because it appears to not be an issue. @smeevil please let me know otherwise! Thanks |
Hi man, Sorry for the horrible late update, but actually working on several phoenix projects now and got a bit busy. I did not encounter the error in any of the other projects, so i finally got some time to return to this one and found the problem :) In the layout view I accidentally had both : This was the cause of the problem, removing the controller fixed it. Nothing to see here, Carry on now ! |
Thanks for the follow-up @smeevil, glad things are working! 👍 |
Hi,
I was wondering if there is already support for rendering partials ?
/Gerard
The text was updated successfully, but these errors were encountered: