Exemplo n.º 1
0
 public static HTMLBuilder <X, Y> Rel <X, Y>(this HTMLBuilder <X, Y> builder, LinkRel rel)
     where X : Link
     where Y : HTMLBuilder
 {
     builder.CurrentTag.AddRel(rel);
     return(builder);
 }
Exemplo n.º 2
0
        public Link(LinkRel rel, LinkType type, string href) : base("link")
        {
            Rel  = rel;
            Type = type;
            Href = href;

            this.Attr("rel", rel.AsPath());
            this.Attr("type", type.AsPath());
            this.Attr("href", href);
        }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="href"></param>
 /// <param name="rel"></param>
 /// <param name="type"></param>
 /// <param name="hreflang"></param>
 /// <param name="title"></param>
 /// <param name="length"></param>
 public AtomLink(string href, LinkRel rel, string type, string hreflang, string title, string length)
 {
     this.HRef     = href;
     this.Rel      = rel;
     this.Type     = type;
     this.HRefLang = hreflang;
     this.Title    = title;
     this.Length   = length;
     this.Modules  = new SyndicationModuleCollection();
 }
Exemplo n.º 4
0
Arquivo: Link.cs Projeto: tbossi/Tags
 public virtual void AddRel(LinkRel rel)
 {
     AddAttribute("rel", rel.LiteralValue());
 }
Exemplo n.º 5
0
 public static Link Link(LinkRel rel, LinkType type, string href) => new Link(rel, type, href);