﻿using System.Text;
using CodedViews.Nancy;
using Nancy.Responses;
using POC.Nancy.Views.Home;

namespace POC.Nancy.Controllers
{
    public sealed class HomeModule : NancyControllerModule
    {
        public CodedViewResult Index()
        {
            return View<HomeIndex>();
        }

        public TextResponse Script()
        {
            return new TextResponse("// JavaScript");
        }

        public TextResponse Style()
        {
            return new TextResponse(
                "/* Style */", "text/css",Encoding.UTF8);
        }
    }
}
