Exemplo n.º 1
0
        public HtmlTag Build(T request)
        {
            var tag = _builder.Build(request);

            request.ReplaceTag(tag);

            _modifiers.Each(m => m.Modify(request));

            return(request.CurrentTag);
        }
Exemplo n.º 2
0
        public HtmlTag Build(ElementRequest request)
        {
            request.ElementId = string.IsNullOrEmpty(request.ElementId)
                ? ElementNamingConvention.GetName(request.HolderType(), request.Accessor)
                : request.ElementId;

            var tag = _builder.Build(request);

            request.ReplaceTag(tag);

            _modifiers.Each(m => m.Modify(request));

            return(request.CurrentTag);
        }