├── readme.md ├── license.txt ├── src └── Nancy.Templates │ └── Nancy.Templates.Core │ ├── HomeModule.cs │ ├── Startup.cs │ ├── .template.config │ └── template.json │ ├── Program.cs │ └── NancyTemplate.csproj └── .gitignore /readme.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NancyFx/Nancy.Templates/HEAD/license.txt -------------------------------------------------------------------------------- /src/Nancy.Templates/Nancy.Templates.Core/HomeModule.cs: -------------------------------------------------------------------------------- 1 | namespace NancyTemplate 2 | { 3 | using Nancy; 4 | 5 | public class HomeModule : NancyModule 6 | { 7 | public HomeModule() 8 | { 9 | Get("/", args => "Hello from Nancy running on CoreCLR"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Nancy.Templates/Nancy.Templates.Core/Startup.cs: -------------------------------------------------------------------------------- 1 | namespace NancyTemplate 2 | { 3 | using Microsoft.AspNetCore.Builder; 4 | using Nancy.Owin; 5 | 6 | public class Startup 7 | { 8 | public void Configure(IApplicationBuilder app) 9 | { 10 | app.UseOwin(x => x.UseNancy()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.[Cc]ache 2 | *.csproj.user 3 | *.[Rr]e[Ss]harper* 4 | *.sln.cache 5 | *.suo 6 | *.user 7 | *.orig 8 | *.pidb 9 | *.userprefs 10 | .DS_Store 11 | deploy/ 12 | build/ 13 | [Bb]in/ 14 | [Dd]ebug/ 15 | [Oo]bj/ 16 | [Rr]elease/ 17 | _[Rr]e[Ss]harper.*/ 18 | *.docstates 19 | *.tss 20 | *.ncrunchproject 21 | *.ncrunchsolution 22 | *.dotCover 23 | src/_NCrunch_Nancy/ 24 | Thumbs.db 25 | .idea 26 | packages/ -------------------------------------------------------------------------------- /src/Nancy.Templates/Nancy.Templates.Core/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Jonathan Channon ", 3 | "classifications": [ 4 | "Nancy", 5 | "Nancy Template", 6 | "NancyFX" 7 | ], 8 | "name": "NancyFX Template", 9 | "groupIdentity": "Nancy", 10 | "identity": "NancyFX.Template", 11 | "shortName": "nancy", 12 | "tags": { 13 | "language": "C#" 14 | }, 15 | "sourceName": "NancyTemplate" 16 | } -------------------------------------------------------------------------------- /src/Nancy.Templates/Nancy.Templates.Core/Program.cs: -------------------------------------------------------------------------------- 1 | namespace NancyTemplate 2 | { 3 | using System.IO; 4 | using Microsoft.AspNetCore.Hosting; 5 | 6 | public class Program 7 | { 8 | public static void Main(string[] args) 9 | { 10 | var host = new WebHostBuilder() 11 | .UseContentRoot(Directory.GetCurrentDirectory()) 12 | .UseKestrel() 13 | .UseStartup() 14 | .Build(); 15 | 16 | host.Run(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Nancy.Templates/Nancy.Templates.Core/NancyTemplate.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp1.1 5 | portable 6 | NancyTemplate 7 | Exe 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | --------------------------------------------------------------------------------