/// <summary> /// Render curly bracket /// </summary> /// <param name="parameters"></param> /// <returns></returns> public string Render(string[] parameters) { ParseParams(parameters); var page = _pageServices.GetById(PageId); if (page == null) { return(_localizedResourceServices.T("CurlyBracketsRendering:::PageContent:::Messages:::GetPageContentIdNotFounded:::Page id is invalid. Please check the data again.")); } var pageRenderModel = new PageRenderModel(page); var template = _templateServices.GetTemplateByName(Template) ?? _templateServices.GetTemplateByName(DefaultTemplate); return(_templateServices.Parse(template.Content, pageRenderModel, null, template.CacheName)); }