Replies: 1 comment
-
I haven't really explored Rails’ flavour of nested layouts. Unless you need compatibility with non Phlex views, I recommend using components for layouts instead. You can set def view_template
render LayoutComponent do
h1 { "Posts" }
end
end I need to improve the documentation on this. Sorry it’s so poor at the moment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm loving phlex so far, but am struggling to get nested layouts working. Would someone mind sharing an example of how they've done so?
I've tried to replicate the erb approach described in the rails docs:
But I'm getting an error,
no block given (yield)
on each of theyield
lines.Beta Was this translation helpful? Give feedback.
All reactions