Replies: 1 comment
-
Hi, the answer is that the paragraph does not refer to the layout in anyway in this example. The composition happens in the
In the c := paragraph("Dynamic contents") And then we pass this component into the layout, and render the result: layout(c).Render(context.Background(), os.Stdout) |
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
-
Please help me understand how this is working. How the paragraph is referring to the layout in the provided example in this page https://templ.guide/syntax-and-usage/template-composition
Beta Was this translation helpful? Give feedback.
All reactions