Write the stripped string s as ... tag. >>> b = HtmlBuilder() >>> b.title_('This is a title') >>> b.getHtml().strip() ' This is a title '
(self, s)
| 714 | self._closeTag('title') |
| 715 | |
| 716 | def title_(self, s): |
| 717 | """Write the stripped string s as <title>...</title> tag. |
| 718 | |
| 719 | >>> b = HtmlBuilder() |
| 720 | >>> b.title_('This is a title') |
| 721 | >>> b.getHtml().strip() |
| 722 | '<title>This is a title</title>' |
| 723 | """ |
| 724 | self.tabs() |
| 725 | self.tabIn() |
| 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. |
no test coverage detected