public string Render()
        {
            Header_Template headerTemplate = new Header_Template();
            Footer_Template footerTemplate = new Footer_Template();

            string content = File.ReadAllText(WebSite.WEBSITE_ROOT_PATH + "html/register.html");

            string error_data = string.Empty;

            foreach (Error error in Errors)
            {
                Error_Template error_template = new Error_Template(error);
                error_data += error_template.Render();
            }

            content = content.Replace("__Error__", error_data);

            return headerTemplate.Render() + content + footerTemplate.Render();
        }
예제 #2
0
        public string Render()
        {
            Header_Template headerTemplate = new Header_Template();
            Footer_Template footerTemplate = new Footer_Template();

            string content = File.ReadAllText(WebSite.WEBSITE_ROOT_PATH + "public/html/register.html");

            string error_data = string.Empty;

            foreach (Error error in Errors)
            {
                Error_Template error_template = new Error_Template(error);
                error_data += error_template.Render();
            }

            content = content.Replace("__Error__", error_data);

            return(headerTemplate.Render() + content + footerTemplate.Render());
        }