How can I create a html snippet that I can reuse across multiple template pages and can pass variable s into? Some like this (but obviously a bit more complicated):
<ul>
<? foreach ($items as $item): ?>
<li><?=$item?></li>
<? endfor; ?>
</ul>
Thanks