Esempio n. 1
0
        public static MetaEntry BuildPropertyMetaTag(string metaKey, string propertyType, string value)
        {
            var metaEntry = new MetaEntry {
                Name = metaKey
            };

            metaEntry.SetAttribute("property", propertyType);
            metaEntry.SetAttribute("content", value);
            return(metaEntry);
        }
Esempio n. 2
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            var metaEntry = new MetaEntry(Name, Content, HttpEquiv, Charset);

            foreach (var attribute in output.Attributes)
            {
                if (String.Equals(attribute.Name, "name", StringComparison.OrdinalIgnoreCase))
                {
                    continue;
                }

                metaEntry.SetAttribute(attribute.Name, attribute.Value.ToString());
            }

            _resourceManager.AppendMeta(metaEntry, Separator ?? ", ");

            output.TagName = null;
        }
Esempio n. 3
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            var metaEntry = new MetaEntry(Name, Content, HttpEquiv, Charset);

            foreach (var attribute in output.Attributes)
            {
                if (String.Equals(attribute.Name, "name", StringComparison.OrdinalIgnoreCase))
                {
                    continue;
                }

                metaEntry.SetAttribute(attribute.Name, attribute.Value.ToString());
            }

            _resourceManager.AppendMeta(metaEntry, Separator ?? ", ");

            output.TagName = null;
        }