-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
Description
The scaffolding tool is great but it's tied to use bootstrap 3 and tweaking generated files for every project is annoying and time consuming! It would be nice to be able to pass a template's folder and the engine looks for templates inside it and use whatever available and use the current default template's path as a last resort!
I would love to provide the path and have the engine to look for templates as follows:
- use the provided path to look for the full template name (i.e. 2.0.0/Templates/ViewGenerator/... as used inside ~/.nuget)
- look for the file name only (for convenience and it's easier to create)
- read
appsettings.*.jsonto know the template's folder (if I didn't provide a path) - read some configuration file about custom template's folder (eg. ~/.aspcoreconfig?)
- use the default location
I'm thinking about a similar approach for dotnet new to provide a different _layout.cshtml that uses bootstrap 4 or any other framework!
do0om, bricelam and NilsLattek