Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (18 sloc) 0.502 kb
namespace Nancy.Demo.SparkViewEngine
{
public class MainModule : NancyModule
{
/// <summary>
/// Initializes a new instance of the <see cref="NancyModule"/> class.
/// </summary>
public MainModule()
{
Get["/"] = (x) =>
{
return View["Index.spark"];
};
Get[ "/test" ] = _ => View[ "test" ];
Get[ "/test2" ] = _ => View[ "test2" ];
}
}
}
Jump to Line
Something went wrong with that request. Please try again.