SharpDOMC#网页模板引擎
SharpDOM 可以让你直接使用 C# 的语法来编写网页,举个例子:
下面是一段HTML代码:
<html>
<head>
<title>Title of the page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script href="/JavaScripts/jquery-1.4.2.min.js" type="text/javascript">
</head>
<body>
<div>
<h1>Test Form to Test</h1>
<form id="Form1" type="post">
<label>Parameter</label> =
<input type="text">Enter value</input>
<input type="submit" text="Submit !" />
</form>
<div>
<p>Textual description of the footer</p>
<a href="http://google.com">
<span>You can find us here</span>
</a>
<div>
Another nested container
</div>
</div>
</div>
</body>
</html>
使用 SharpDOM 来编写的话,就变成了
html[
head[
title[ "Title of the page" ],
meta.attr(http-equiv: "contenttype", content: "html", charset: "utf-8"),
link.attr(href: "css/style.css", rel: "stylesheet", type: "css"),
script.attr(href:"/JavaScripts/jquery-1.4.2.min.js", type: "javascript")
],
body[
div[
h1[ "Test Form to Test" ],
form.attr(id: "Form1", type: "post")[
label[ "Parameter" ], "=", input.attr(type:"text", value: "Enter value"), br,
input.attr(type: "submit", value: "Submit !")
],
div[
p[ "Textual description of the footer" ],
a.attr(href: "http://google.com" )[
span[ "You can find us here"]
]
],
div[ "Another nested container" ]
]
]
]
评论
SMX网页模板引擎
SMX(ServerMacroExpansion)是一个跨平台的HTML生成脚本语言,比一个比PHP、Perl之类的编程语言更加高级的模板,主要用来生成网页。原先是用来做金融报表系统的,内嵌支持ODB
SMX网页模板引擎
0
Jenner网页模板引擎
Jenner是一个网页模板:它运行完全在Web浏览器。模板只是正常的内部文本节点,属性或评论特殊语法的网页。与其他浏览器的模板系统,Jenner不要求“阶级”属性或无效的HTML超载;所有Jenner
Jenner网页模板引擎
0
费尔模板引擎PHP模板引擎
费尔模板引擎是一个基于PHP的高效的PHP模板引擎,主要对于PHP程序的方面快速开发而设计,这意味着PHP代码与HTML是分开的,让程序员有足够的空间发挥编写程序,让网页设计师轻松维护模板代码,而不需
费尔模板引擎PHP模板引擎
0
RTFTemplateRTF 模板引擎
RTFTemplate是一个用来生成RTF文档的Java模板引擎。RTFTemplate的体系结构示例代码:publicclassRTFProjectTestextendsAbstractUseCas
RTFTemplateRTF 模板引擎
0
ZipscriptJava 模板引擎
Zipscript 是一个Java的模板引擎,号称集成了Velocity和FreeMarker的优点,功能齐全。如何使用Zipscript?作为MVCWeb应用程序的模板引擎作为从外部数据评估条件表达
ZipscriptJava 模板引擎
0