def render_link_tag(url, rel=u'stylesheet', media=None):
 attrs = {u'href': url, u'rel': rel}
 if media:
  attrs[u'media'] = media
 return render_tag(u'link', attrs=attrs, close=False)

def render_link_tag ( url , rel = u'stylesheet' , media = None ) : attrs = { u'href' : url , u'rel' : rel } if media : attrs [ u'media' ] = media return render_tag ( u'link' , attrs = attrs , close = False )
build a link tag .