Answer the question
In order to leave comments, you need to log in
Should I use inclusion_tag?
Whether to use inclusion_tag to display the latest blog posts in the sidebar.
And does it have a positive effect on something?
Or is it better to write through blocks? {% bloc content %} create different pages with the desired content and render like this ?
Answer the question
In order to leave comments, you need to log in
We abandoned included tags, because it becomes unclear to the layout designer which template is rendered and where to look for it.
It is more convenient to make include. And in the connected file, use the assignment_tag to get the data that needs to be inserted into the template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question