The way I understand it, the way they break, looks like this:
"render" gives you the full view / controller / template context for working with it.
An example would be top navigation that includes dynamic elements. Content will be supported in TopNavController and inserted into the application template using "render"
"partial" will insert the template, but this template will use the current context instead of its own. Partial is also a new part of the structure designed to replace the template to some extent.
The example will show a list of users and each user will be a relatively complex figure in the list (avatar, name, email address, etc.), you can simply scroll through the list and insert a partial, based on the context of each user.
a "template" simply inserts a template using the current context. I believe that this is not a good style, although to use a template to render fragments inside a template, you should rather use “partial”, although the template will work the same for most cases.
Andre Malan Feb 05 '13 at 1:09 2013-02-05 01:09
source share