示例#1
0
        public WebPage(Namiono provider, string doctype = "html", string title = "")
        {
            namiono = provider;
            namiono.WebPageRequested += (sender, e) =>
            {
                Render(e.Context, e.Path);
            };

            this.doctype = doctype;
            this.title   = title;
        }
示例#2
0
        static void Main(string[] args)
        {
            var namiono = new Namiono();

            namiono.Start();

            var x = "exit";

            while (x != "exit!")
            {
                x = Console.ReadLine();
            }

            namiono.Close();
        }