Multiple skins in ASP.NET MVC using StringTemplate

Posted by Jamie on Stack Overflow See other posts from Stack Overflow or by Jamie
Published on 2009-10-28T17:57:15Z Indexed on 2010/05/07 22:38 UTC
Read the original article Hit count: 641

Filed under:
|

I am considering the StringTemplate view engine for my ASP.NET MVC application. This application will be built with one skin, but I then expect many more, often very similar skins to be developed for it. This is primiarly the reason for my choice of StringTemplate as the view engine, as there will be zero logic in the views.

In my head, I envisaged having each skin in a directory under the 'Views' directory in the folder structure, then maintaining a data structure which maps hostnames to skin directories. An obvious disadvantage of this approach is that I will have to explicitly specify my view files - an alternative might be to hack the implementation of the View() method to change the /views/controller/action standard path and insert an extra layer.

Is anyone aware of any examples of implementations along these lines using ASP.NET MVC and StringTemplate at present? Can anyone forsee any potential problems with my approach?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about stringtemplate