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

查看:31
本文介绍了你能推荐一个.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 的 FreemarkerVelocity 库.

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.

推荐答案

还有几个:

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

关于 NVelocity,它已经被 Castle 的人分叉,正在开发 这里

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天全站免登陆