From 72f72d64a422d6628c4796f5c0bf2e508f134214 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:05:14 +0900 Subject: Adding upstream version 0.5.1 --- w3m-doc/sample/html.wd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 w3m-doc/sample/html.wd (limited to 'w3m-doc/sample/html.wd') diff --git a/w3m-doc/sample/html.wd b/w3m-doc/sample/html.wd new file mode 100644 index 0000000..1b1d7f2 --- /dev/null +++ b/w3m-doc/sample/html.wd @@ -0,0 +1,18 @@ +@code +sub URL { + $_[0]->CHECK(qw(url)); + $_[0]->{url}; +} +sub LINK { + $_[0]->CHECK(qw(url title)); + "{url}\">$_[0]->{title}"; +} +sub LINK_SEC { + $_[0]->CHECK(qw(url section title)); + "{url}\">$_[0]->{section} $_[0]->{title}"; +} +sub MAILTO { + $_[0]->CHECK(qw(address name)); + "{address}\">$_[0]->{name}"; +} +@end -- cgit v1.2.3