- Brail
- NHaml (NHaml has been moved from MvcContrib into a separate project)
- NVelocity
- XSLT
- Be able to use the same templating / view engine in asp.net MVC.
- Do not have to learn a new templating language if possible.
- Be able to keep the business logic separate from the view templates.
- Have the least learning curve to implement a basic use case.
- Has enough capability to be able to use advance features and capabilities.
- Should be extendable if needed.
- Should have a very strong developer community to support and sort out the bugs with.
- Should be in use for sometime to be able to determine its stability.
In order to render html from our C# REST service we had to look into templating engines available in C#, since we wanted our generated html to be altered on the fly.
We came across the following
4 View engines exist in
Which are
In addition we found the following two engines
StringTemplate and StringTemplateMVC
Asp view from Castle project
Each engine aims to keep the focus on the generated html, and the dynamic contents are inserted into the html.
Our decision about which language to use was based on the following conditions
After doing quite some investigation we decided to go for Spark templating engine, primarily because of the capability of being able to use c# like syntax in templates, and the initial configuration and setup was very simple and easy.
Filed under: .net development, WCF | Tagged: ASP.NET, c#, csharp, templating, templating engine



![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=1405f0b3-f4c9-449e-9aed-b5b7b69d008c)
Dear Friend
You are articles are nice and excellent concept. I would like to invite to newly launched .NET Programming website the codegain.com on 1st of this June 2009. Currently CodeGain has more than 400 articles within the a month under the followings categories C#, VB.NET,ASP.NET,WPF,WCF,WFF,LINQ, AJAX, JQuery, JavaScript, Sql Servers , Oracle and more. To more list of categories visit the http://www.codegain.com. I have seen you are writing greatest article to web portal, I’m kindly asking you publish your article in codegain.com also and support to grow the CodeGain share this with your friends also. I am expecting good response from you. You can contact me using info@codegain.com.
Thank you
RRaveen
codegain.com