MCPcopy Create free account
hub / github.com/PageBot/PageBot / link

Method link

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:728–741  ·  view source on GitHub ↗

The link tag defines the relationship between two linked documents. self.head() ... self.link(href='/_images/favicon.ico', rel='shortcut icon') ... self._head()

(self, **args)

Source from the content-addressed store, hash-verified

726 self.write('<title>%s</title>' % s.strip())
727
728 def link(self, **args):
729 """The link tag defines the relationship between two linked documents.
730
731 <www href="http://www.w3schools.com/tags/tag_link.asp" target="external"/>
732
733 self.head()
734 ...
735 self.link(href='/_images/favicon.ico', rel='shortcut icon')
736 ...
737 self._head()
738
739 """
740 self.write_tag('link', False, args)
741 self.newLine() # Optional newline is self.compact is False.
742
743
744 def body(self, **args):

Callers 1

write_headMethod · 0.80

Calls 2

write_tagMethod · 0.80
newLineMethod · 0.80

Tested by

no test coverage detected