Custom MVC2 editortemplates

I would like to create a library of custom EditorTemplates and DisplayTemplates. How to “load” them into my MVC application? I want to be able to reuse my own template library in various MVC applications.

+3
source share
1 answer

I don’t think there is a way to “share” the editor library or display templates between applications. With the exception of primitive types such as date and int, your templates will depend on your model data, so you probably want to create a shared library for these primitive types. This would be better implemented as a set of HTML helpers.

0

Source: https://habr.com/ru/post/1744975/


All Articles