Example #1
0
        /// <summary>
        /// Renders the specified template to the writer.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="writer"></param>
        /// <param name="template"></param>
        public static void Render <T>(HtmlTextWriter writer, IRazorControlTemplate <T> template)
            where T : CogitoControl
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }
            if (template == null)
            {
                throw new ArgumentNullException(nameof(template));
            }

            template.Render(writer);
        }