Site icon Hip-Hop Website Design and Development

How to customise content in partial Twig templates

Using partial Twig templates is a great way to organise your frontend code because you can reuse code fragments in multiple templates. But what happens if you want to use the same partial template in multiple places and customise its content slightly?
You can do this by passing variables to the included partial template using the with keyword.
Source: New feed