Is there any comparison? Pros and cons?
+2
A:
Pros of input builders: they can recognize attributes on the model such as MaximumStringLength
and set the maxlength
html attribute. They also can recognize the presence of the Required
attribute and put the required
class on the element.
Pros of editor templates: support of incremental sequencing.
Darin Dimitrov
2010-03-28 10:09:59
+1 for the incremental sequencing link, been hand rolling that for awhile now. This helps.
mxmissile
2010-03-29 22:07:37
+2
A:
MVC 2 editor template is an evolution of MVCContrib input builder.
It's true that is missing a few things, like Darin Dimitrov said, but It's a fact that it's has a stronger architecture.
Pros:
- Have a special folder
EditorTemplates
under the shared folder AND under the view! (area supported too). In the older MVCContrib input builder you must put the templates in the a shared folder. In order to use it with a special folder you must add a new view engine that will look on this folder.
Cons:
None.
Mendy
2010-03-29 11:12:04