Hi,
We are new to Custom templates so please forgive if this is trivial.
We are trying to generate customized MVC3 templates. For that we got almost all things working however we need to generate folders for Entities so that views can be inside them. To explain:
Lets say I have tables: Order, Employee and Department. In my Views folder, I should have folders by the name Order, Employee and Department so that respective Views for the controller should go there. We are able to generate the views in Views folder. We got a hack working where via C# code we are able to generate folders for each entity with LPT file is called.
However we are not able to figure out how to put the views in subfolders.
We tried providing "[entityName]" format in destination folder where output of the LPT is generated but it is not taking a pattern and it creates a folder by the name "[entityName]".
Perhaps there is a much cleaner way to do this.
Please help.
Amit