有哪些工具/SDK 可用于帮助生成 HTML?
我想编写一个 C# 程序,它可以根据从外部数据库抓取的一些数据生成一系列 HTML 页面。是否有任何基于 .NET 的 SDK 可以让我生成 HTML?也许我正在搜索错误的关键词,但似乎无法找到一个简单、全面的答案。我也想知道,如果我改用 Java,Google Web Toolkit 是否可以解决我的问题?感谢您的帮助。
I want to write a C# program which can generate a series of HTML pages based on some data grabbed from an external database. Are there any .NET based SDK which enables me to do the HTML generation? Maybe I am searching on the wrong keywords, but can't seem to find a simplistic, comprehensive answer to this. Just wondering as well, is the Google Web Toolkit an answer to my problem IF I use Java instead? Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,我会避免服务器端 HTML 生成,而选择客户端模板。
客户端模板有很多选择,但是
jquery-tmpl
正在成为 jQuery 的标准模板引擎。如果您希望它能够轻松地与您的数据相关联,请考虑将 MVC3 与 Knockout.js,如下所示:http://channel9.msdn.com/Events/MIX/MIX11/FRM08
In general, I would avoid server-side HTML generation, and opt for client-side templates.
There are many options when it comes to client-side templating, but
jquery-tmpl
is becoming a the standard template engine for jQuery.If you want this to tie into your data easily, consider using MVC3 with Knockout.js, as demonstrated here: http://channel9.msdn.com/Events/MIX/MIX11/FRM08