예제 #1
0
            public static HtmlTag Span(this HtmlTag tag, Action <HtmlTag> configure)
            {
                var span = new HtmlTag("span");

                configure(span);
                return(HtmlTagExtensions.Append(tag, span));
            }
예제 #2
0
            public static HtmlTag Div(this HtmlTag tag, Action <HtmlTag> configure)
            {
                var div = new HtmlTag("div");

                configure(div);

                return(HtmlTagExtensions.Append(tag, div));
            }