Open adamralph opened 11 years ago
Executing: > scriptcs -install ScriptCs.Nancy
> scriptcs -install ScriptCs.Nancy
creates:
modules home.csx views home.html nancy.csx
home.csx contains:
home.csx
public HomeModule : NancyModule { public HomeModule() { Get["/"] = _ => View["index"]; } }
home.html contains something which looks :cool:.
home.html
nancy.csx contains:
nancy.csx
#load "modules\home.csx" Require<NancyPack>.Host();
(The #load can be ommitted if https://github.com/adamralph/scriptcs-nancy/issues/13 is closed.)
#load
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.
Executing:
> scriptcs -install ScriptCs.Nancy
creates:
home.csx
contains:home.html
contains something which looks :cool:.nancy.csx
contains:(The
#load
can be ommitted if https://github.com/adamralph/scriptcs-nancy/issues/13 is closed.)Quickstart becomes:
:sunglasses: