Input Builders Template Location

1 view
Skip to first unread message

Travis

unread,
Nov 5, 2009, 2:10:10 PM11/5/09
to mvccontrib-discuss
Is it possible to specify the location of the InputBuilder templates?
My Views/Shared folder is cluttered enough. Maybe something like
Views/InputBuilders?

Eric Hexter

unread,
Nov 5, 2009, 2:39:44 PM11/5/09
to mvccontri...@googlegroups.com
There are two ways to do this.  I am not sure which one is best.
 
If you implement your own convention you can do that.  Instead of returning the view : string return InputBuilders\String  .
 
If you do this you will need to implement all of the views and the embeded views from MvcContrib will not be located.
 
Another way to do this would be to add a view engine that specificies that new location.  Insert that view engine infront of the existing InputBuilder view engine.
 

Eric Hexter

Principal Consultant | Headspring Systems | www.HeadspringSystems.com
email | ehe...@HeadspringSystems.com
blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter




Travis

unread,
Nov 5, 2009, 5:50:33 PM11/5/09
to mvccontri...@googlegroups.com
Cool beans, did not know about the embedded views.  Much cleaner!

Travis
Reply all
Reply to author
Forward
0 new messages