SparkViewEngine / spark

Spark is a view engine for ASP.NET MVC and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and any code to fit seamlessly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spark View Engine

Spark is a view engine for ASP.NET MVC, FubuMVC, NancyFx and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and any code to fit seamlessly.

<viewdata products="IEnumerable[[Product]]"/>
<ul if="products.Any()">
  <li each="var p in products">${p.Name}</li>
</ul>
<else>
  <p>No products available</p>
</else>

Although we also support "left-offset" syntax inspired by frameworks like Jade and Haml

viewdata products="IEnumerable[[Product]]"
ul if="products.Any()"
  li each="var p in products" 
    ${p.Name}
else
  p |No products available

Getting Started

Installation

It's as easy as PM> Install-Package Spark from nuget for the core

Continuous Integration Status

Need Help

Core Team

Licence

All software produced by the Spark Software Foundation or any of its projects or subjects is licensed according to the terms of Apache License, Version 2.0

See the Apache License FAQ

Read more about licencing in the Wiki

About

Spark is a view engine for ASP.NET MVC and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and any code to fit seamlessly.

License:Apache License 2.0


Languages

Language:C# 82.7%Language:HTML 6.0%Language:CSS 5.0%Language:JavaScript 2.7%Language:C++ 1.7%Language:Visual Basic .NET 0.6%Language:XSLT 0.5%Language:Java 0.3%Language:ASP.NET 0.3%Language:C 0.1%Language:Batchfile 0.0%Language:Shell 0.0%