Can you recommend a .net template engine?

I am looking for a .net templating engine – something simple, lightweight, stable with not too many dependencies. All I need it for at the moment is creating templated plain text and html emails. Can anyone give me a good recommendation? If it helps at all – something like Java’s Freemarker or Velocity libraries. [UPDATE] … Read more

JQuery’s $ is in conflict with that of StringTemplate.Net in ASP.Net MVC

I am exploring ASP.NET MVC and I wanted to add jQuery to make the site interactive. I used StringTemplate, ported to .Net, as my template engine to generate html and to send JSON. However, when I view the page, I could not see it. After debugging, I’ve realized that the $ is used by the StringTemplate to access property, etc and jQuery uses it too to manipulate the DOM. Gee, I’ve looked on other template engines and most of them uses the dollar sign :(.

Dynamically change GridView item template

I have a fairly big asp.net website that use GridView bound to the same object in lots of places. I’m using an item template to customize each row. However to have the same template in all the pages I have to copy & paste the item template to each page. Obviously this is not the best solution. On top of this I want to be able to change the template used by the GridView, by changing some configuration file.
One option would be to create an user control with the DataGrid and expose the necessary properties to be used in each page. However this does not fulfill the second requirement to be able do dynamically change the template.
Basically I’m looking for a way to say to the GridView to use a template and be able to do this dynamically. Any idea would be helpful.

Display articles with a different template in the home page | Solved |

I am creating a theme for my site. I would like to display the last 5 articles on the home page but with a different display for the first articles.
So I created this code that I try to tweak but impossible to display the first article with the first template and the 4 others with the second template. I don’t know if it’s possible to do it the way I want to do it, but this way seems to be the easiest