Zen views for .NET with ZPT-Sharp
Overview
ZPT-Sharp is a page-template engine for creating dynamic HTML & XML documents. It uses an intuitive attribute-based syntax which is powerful yet easy to learn for designers & developers alike. ZPT-Sharp works on both the .NET and Mono frameworks.
Sample markup
<section class="product_list">
<h2>Our products<h2>
<ul>
<li class="product_summary"
tal:repeat="product here/ProductList">
<a href="products/dummy"
class="product_name"
tal:attributes="href product/ProductDetailUrl"
tal:content="product/Name">
A sample product
</a>
<img src="assets/product-thumbnails/dummy.png"
alt="Photo of A sample product"
tal:define="altText string:Photo of ${product/Name}"
tal:attributes="src product/ThumbnailImageUrl;
alt altText" />
<div class="product_description"
tal:content="structure product/HtmlDescription">
<p>
This product is rather good,
<em>you should definitely buy one</em>.
In fact, we're not sure how you lived without it.
</p>
</div>
</li>
</ul>
</section>
Next steps
-
Hello World tutorial
Install ZPT-Sharp into an ASP.NET MVC project and write your first view in five minutes.
-
NuGet packages
The recommended way to install ZPT-Sharp; choose a bundle that just works or customise the installed components.
-
Learn ZPT-Sharp
Learn to write great views, and take advantage of the full power of the ZPT syntax.
ZPT-Sharp is available under the permissive MIT license. It is developed in the open, hosted on GitHub. Contributions, including feature suggestions, bug reports, development or code review are always welcome.