scriptcs-nancy
scriptcs-nancy copied to clipboard
Add folder bootstrapping
Executing:
> scriptcs -install ScriptCs.Nancy
creates:
modules
home.csx
views
home.html
nancy.csx
home.csx
contains:
public HomeModule : NancyModule
{
public HomeModule()
{
Get["/"] = _ => View["index"];
}
}
home.html
contains something which looks :cool:.
nancy.csx
contains:
#load "modules\home.csx"
Require<NancyPack>.Host();
(The #load
can be ommitted if https://github.com/adamralph/scriptcs-nancy/issues/13 is closed.)
Quickstart becomes:
> scriptcs -install
> scriptcs nancy
:sunglasses:
Needs spiking, not sure if feasible.
Can also consider making this happen on demand, either with a REPL command or by invoking a bootstrapping script which comes with the pack.