scriptcs-nancy icon indicating copy to clipboard operation
scriptcs-nancy copied to clipboard

Add folder bootstrapping

Open adamralph opened this issue 11 years ago • 2 comments

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:

adamralph avatar May 12 '13 18:05 adamralph

Needs spiking, not sure if feasible.

adamralph avatar Jun 08 '13 18:06 adamralph

Can also consider making this happen on demand, either with a REPL command or by invoking a bootstrapping script which comes with the pack.

adamralph avatar Jun 18 '13 21:06 adamralph