How To: Template “Partials”
John Dwells wrote a how-to on creating template “partials” functionality to solve a problem that I’m sure has plagued most of us in developing ExpressionEngine sites.
The problem is that using embeds to pass content from one template to another works well enough, but it comes at a price of extra overhead to EE and plenty of potential for extra complexity for your templates.
I love the idea of using a plugin to solve this problem. John’s how-to describes an excellent way to do this and make your templates a lot easier to work with and definitely more elegant. John’s code examples are fantastic, and he walks you through the whole process very well. Plus, if you’ve ever wanted to roll your own plugin, then this is a great way to get started, too.
Check it all out at JohnDwells.com: Homegrown plugin to create template “partials” for ExpressionEngine