Skip to content

civicsource/spark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Need Help

Core Team

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 88.0%
  • CSS 5.2%
  • JavaScript 2.7%
  • C++ 1.6%
  • Visual Basic .NET 0.9%
  • XSLT 0.5%
  • Other 1.1%