public HtmlTag Build(ElementRequest request, string category = null, string profile = null)
        {
            profile = profile ?? _profile.Name ?? TagConstants.Default;
            category = category ?? TagConstants.Default;

            var token = request.ToToken();

            var plan = _library.PlanFor(token, profile, category);

            request.Attach(_serviceLocator);

            return plan.Build(request);
        }
Exemple #2
0
        public HtmlTag Build(ElementRequest request, string category = null, string profile = null)
        {
            profile  = profile ?? _profile.Name ?? TagConstants.Default;
            category = category ?? TagConstants.Default;

            var token = request.ToToken();

            token.Attach(_serviceLocator);

            var plan = _library.PlanFor(token, profile, category);

            request.Attach(_serviceLocator);

            return(plan.Build(request));
        }