https://github.com/mvccontrolstoolkit/mvccontrolstoolkit.templates
mvcct-templates installs content files needed by Mvc Controls Toolkit into asp.net core.
https://github.com/mvccontrolstoolkit/mvccontrolstoolkit.templates
Last synced: 4 months ago
JSON representation
mvcct-templates installs content files needed by Mvc Controls Toolkit into asp.net core.
- Host: GitHub
- URL: https://github.com/mvccontrolstoolkit/mvccontrolstoolkit.templates
- Owner: MvcControlsToolkit
- License: other
- Created: 2016-06-24T17:32:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T11:01:39.000Z (over 7 years ago)
- Last Synced: 2025-05-16T23:34:07.658Z (about 1 year ago)
- Language: HTML
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# mvcct-templates
**current version:** 1.2.0.
mvcct-templates installs content files needed by the Mvc Controls Toolkit into an asp.net core project.
It is available on npm. Just install it after you have installed all other npm and Bower dependencies,
and it'll add:
1. Shared partial views to handle enhanced validation scripts, globalization scripts, html5 fallback widget scripts and css.
2. Javascript [mvcct-enhancer](https://github.com/MvcControlsToolkit/mvcct-enhancer) startup+option file under the folder wwwroot/startupjs.
3. 2 Javascript files containing tasks to:
* create a minimized version of the globalize library under wwwroot/lib/globalize (you may add more modules if needed by editing this file), and to move culture
files to deploy under wwwroot/lib/globalize.
* minimize the mvcct-enhancer startup+options file
4. update or create a libman.json file with the JavaScript libraries from point 1 partial views
**Important:** 1.1.2 version fixed a JavaScript critical run. Developers, who scaffolded a project prior to that version must fix manually the bug, since the mvcct-templates can't be run twice on the same project. The fix is as follows:
Move the line of code:
```
```
from Views\Shared\\_EnhancementFallbackPartial.cshtml to Views\Shared\\_GlobalizationScriptsPartial.cshtml just after `@using System.Globalization`, as shown in the snippet below:
```
@using System.Globalization
```
This project is part of the Mvc Controls Toolkit . You can find instructions,
documentation and more information on the Mvc Controls Toolkit in the [Home repository](https://github.com/MvcControlsToolkit/Home)