你能推荐一个.NET模板引擎? [英] Can you recommend a .net template engine?

查看:172
本文介绍了你能推荐一个.NET模板引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个.NET模板引擎 - 简单的东西,轻量级的,没有太多的依赖稳定。所有我需要它此刻正在创建模板纯文本和HTML电子邮件。谁能给我一个好的建议?

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?

如果它有助于在所有 - 类似Java的 Freemarker的或的速度库。

If it helps at all - something like Java's Freemarker or Velocity libraries.

[更新]
感谢迄今答案 - 很多AP preciated。我真的建议或战争的故事intested从当您使用这些库。似乎是作出决定,而不依次尝试每一个最好的方法。

[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.

推荐答案

下面是一对夫妇:


  • NHaml

  • 星火

  • 抄网(可用于<一个href=\"https://github.com/castleproject/MonoRail/blob/master/MR2/src/Castle.MonoRail.Views.Brail/StandaloneBooViewEngine.cs\">standalone)

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

关于NVelocity,它已被青山家伙分叉,它正在开发这里

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

有关的电子邮件,我从来没有比NVelocity需要更多的。

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

这篇关于你能推荐一个.NET模板引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆