In modern web frameworks like Rails and symfony the concept of partial includes or partial views is well documented and recommended.
What I am having trouble with lately is deciding how much design to include in the partial.
It's kind of hard to explain but I want to know what others do when creating a partial and including it in a template. Do you only display the data and position it in the template or do you put all the styling and positioning code in the partial and just include it like so.
I guess my question is, what is your thought process when deciding to create a partial and when do you use it in your own code, and how much do you put into your partial when you decide to use one.