Sitemesh.NET

After reading the excellent but short article on ASPToday about AOP (Aspect Oriented Programming) in ASP.Net  (written by Ann Jose) I found this interesting resource Sitemesh.

There is an open source project named Sitemesh.NET which uses the approach we have discussed in the previous section for applying a common theme for a web site. Sitemesh.NET is a web-page layout and web-application integration system which helps in creating large sites for which a consistent look/feel, navigation and layout scheme is required. It is a port of Sitemesh, a JSP implementation of the same idea using the GangOfFour Decorator design pattern. You can get more details on this project from their Sitemesh web site.

 

3 Comments

  • Sitemesh sounds pretty lame to me. Its likely very inefficient, but more than that its just not going to be very functional. Sure you can add static common templates this way, but most good sites have dynamic parts to their common templates. Thinks like highlighting the menu element that your currently on, or some personalization aspects for instance. OK, you could include such dynamic templates in a system like this, but only if you do even more parsing, which just adds to the complexity and inefficiency. If there weren't other solutions then I would say great idea, since I couldn't believe it that ASP.NET launched with a template system built-in -- but there are other solutions.

  • The new ASP.NET v2 Templates will rock.

  • Sitemesh is the only true non-intrusive template/decorator tool out there. If you really want to separate your business logic from your presentation logic, this is the way to do it. But, as a see a good design is not a priority on .Net/Microsoft systems.

Comments have been disabled for this content.