Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you recommend a .net template engine? [closed]

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] Thanks for the answers so far - much appreciated. I am really intested in recommendations or war stories from when you have used these libraries. Seems to be the best way to make a decision without trying each in turn.

like image 483
serg10 Avatar asked Dec 04 '08 10:12

serg10


People also ask

Is templating engine necessary?

You actually dont need them, but they have a lot of features that makes your pages more dynamic..

Are template engines Good?

Using template engines for complex front end rendering is bad and not a good practice.

What is an advantage to using a templating engine?

A template engine enables you to use static template files in your application. At runtime, the template engine replaces variables in a template file with actual values, and transforms the template into an HTML file sent to the client. This approach makes it easier to design an HTML page.


1 Answers

Here's a couple more:

  • NHaml
  • Spark
  • Brail (can be used standalone)

About NVelocity, it has been forked by the Castle guys, it's being developed here

For emails, I've never needed more than NVelocity.

like image 115
Mauricio Scheffer Avatar answered Sep 19 '22 14:09

Mauricio Scheffer