Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个自定义 EditorTemplates 和 DisplayTemplates 库。如何将这些“加载”到我的 MVC 应用程序中?我希望能够在各种 MVC 应用程序中重复使用我的自定义模板库。
我认为没有办法在应用程序之间“共享”编辑器库或显示模板。除了像 date 和 int 这样的原始类型,您的模板将依赖于您的模型数据,因此您可能只想为这些原始类型创建一个公共库。这将更好地实现为一组 HTML 助手。