scriptcs-nancy
scriptcs-nancy copied to clipboard
Nancy Script Pack for scriptcs
It would be nice to have a ScriptCs.Nancy.Razor script pack which takes a dependency on ScriptCs.Nancy.
Allows the samples to be a smoke test of the published package.
Should probably throw when no routes exist. See https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Demo.Hosting.Aspnet/MainModule.cs#L16
Something like ``` C# n.Routes ``` See https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Demo.Hosting.Aspnet/MainModule.cs#L16
At DEBUG level. See https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Demo.Hosting.Aspnet/MainModule.cs#L16
Depends on https://github.com/scriptcs/scriptcs/commit/d5a2ee84363cf3f0a45ae576c96dff044b60797e being merged to master and released.
Executing: `> scriptcs -install ScriptCs.Nancy` creates: ``` C# modules home.csx views home.html nancy.csx ``` `home.csx` contains: ``` C# public HomeModule : NancyModule { public HomeModule() { Get["/"] = _ =>...
Similar to the output when running WEBrick and Rails etc.
Currently the default port is hardcoded to 8888. If another process is using this (e.g. Fiddler defaults to 8888), then the following error message is given and the script exits:...