#234

If you want a flexible way of doing it create a function. You can do add arguments to it to suit your needs.

If you have just bunch of html codes that you want to recycle, get_template_part() function is enough.