custom MVC2 editortemplates
i would like to create a library of custom EditorTemplates and DisplayTemplates. How do I "load" these in开发者_JS百科to my MVC application? I want to be able to re-use my custom template library across a variety of MVC apps.
I don't think there is a way to "share" a library of editor or display templates between apps. Except for primitive types like date and int, your templates will be dependent on your Model data, so you probably only want to create a common library for those primitive types. That would be better implemented as a set of HTML Helpers.
精彩评论