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/friends.html"); content = content.Replace("__Username__", this.user.Username); return(headerTemplate.Render() + content + footerTemplate.Render()); }
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/home.html"); content = content.Replace("__Username__", this.user.Username); content = content.Replace("__ID__", this.user.Id.ToString()); content = content.Replace("__PasswordHash__", this.user.Hash); return(headerTemplate.Render() + content + footerTemplate.Render()); }
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(); }
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()); }