--- /srv/reproducible-results/rbuild-debian/r-b-build.jZl7nYM0/b1/htp_1.19-8_i386.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.jZl7nYM0/b2/htp_1.19-8_i386.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ 785534fcbc71c3b605912f9a86b62dd9 59396 debug optional htp-dbgsym_1.19-8_i386.deb │ - 1cf0c24ed51873fd90c8e331526f8ffd 119836 web optional htp_1.19-8_i386.deb │ + 59e09c45c0a03309bb06829ad4ab7598 120908 web optional htp_1.19-8_i386.deb ├── htp_1.19-8_i386.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2020-06-14 23:21:19.000000 debian-binary │ │ -rw-r--r-- 0 0 0 3620 2020-06-14 23:21:19.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 116024 2020-06-14 23:21:19.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 117096 2020-06-14 23:21:19.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./control │ │ │ │ @@ -1,12 +1,12 @@ │ │ │ │ Package: htp │ │ │ │ Version: 1.19-8 │ │ │ │ Architecture: i386 │ │ │ │ Maintainer: Marcelo Soares Mota │ │ │ │ -Installed-Size: 629 │ │ │ │ +Installed-Size: 658 │ │ │ │ Depends: libc6 (>= 2.38) │ │ │ │ Section: web │ │ │ │ Priority: optional │ │ │ │ Homepage: http://htp.sourceforge.net │ │ │ │ Description: nice HTML pre-processor │ │ │ │ htp is an HTML pre-processor. It is designed to be a flexible authoring tool │ │ │ │ that can easily be integrated into the HTML design process. │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── file list │ │ │ │ @@ -1,27 +1,27 @@ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/bin/ │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 75284 2020-06-14 23:21:19.000000 ./usr/bin/htp │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/ │ │ │ │ --rw-r--r-- 0 root (0) root (0) 8550 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/alttext.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 10162 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/alttext.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1418 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/alttext.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 7882 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/block.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9864 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/block.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 781 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/block.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 9062 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/blockdef.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 11105 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/blockdef.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1075 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/blockdef.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 4763 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/bugs.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 737 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/bugs.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 878 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/changelog.Debian.gz │ │ │ │ --rw-r--r-- 0 root (0) root (0) 7719 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/comment.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13470 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/comment.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 676 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/comment.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 13083 2020-06-14 23:16:46.000000 ./usr/share/doc/htp/copyright │ │ │ │ --rw-r--r-- 0 root (0) root (0) 11398 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/def.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 11064 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/def.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3601 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/def.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 8030 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/default.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3149 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/default.htp │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/examples/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 536 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/Makefile.sub │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2404 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/album.hti │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1087 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/album.htt │ │ │ │ @@ -32,43 +32,43 @@ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 818 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/prime.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1576 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/examples/quine.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1576 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/quine.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 604 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/section.def │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1189 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/examples/section.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 918 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/section.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 375 2015-05-16 17:04:11.000000 ./usr/share/doc/htp/examples/section.htt │ │ │ │ --rw-r--r-- 0 root (0) root (0) 7909 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/expand.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 10487 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/expand.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3702 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/expand.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 13054 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/file.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 18657 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/file.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2490 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/file.htp.gz │ │ │ │ -rw-r--r-- 0 root (0) root (0) 14293 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/history.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3946 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/history.htp.gz │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3911 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/hlhtp.pl │ │ │ │ -rw-r--r-- 0 root (0) root (0) 165 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/htp.def │ │ │ │ -rw-r--r-- 0 root (0) root (0) 4049 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/htp.htt │ │ │ │ --rw-r--r-- 0 root (0) root (0) 8782 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/if.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9854 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/if.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 932 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/if.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 8626 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/imageurl.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2507 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/imageurl.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 8277 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/img.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 8860 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/img.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1168 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/img.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 9477 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/inc.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 8142 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/inc.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1092 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/inc.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 9881 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/include.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1894 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/include.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 4874 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/index.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 78 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/index.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 7733 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/intro.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3489 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/intro.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 10774 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/license.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 454 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/license.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3782 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/macros.def │ │ │ │ -rw-r--r-- 0 root (0) root (0) 5088 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/macros.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 388 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/macros.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 12319 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/metatag.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 15799 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/metatag.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2439 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/metatag.htp.gz │ │ │ │ -rw-r--r-- 0 root (0) root (0) 7558 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/opt.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 608 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/opt.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 7809 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/options.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3100 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/options.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 7777 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/output.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 695 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/output.htp │ │ │ │ @@ -79,17 +79,17 @@ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 25563 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/logo.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 455 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/manbig.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 491 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/manual.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1313 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/poweredbyhtp.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 679 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/sficon.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 492 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/source.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 523 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pphtp.pl │ │ │ │ --rw-r--r-- 0 root (0) root (0) 7503 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/quote.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 10674 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/quote.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 390 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/quote.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 8558 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/set.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13185 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/set.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1200 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/set.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 500 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/styles.css │ │ │ │ -rw-r--r-- 0 root (0) root (0) 27219 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/template.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2235 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/template.htp.gz │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1914 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/toc.def │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 146 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/footer.hti │ │ │ │ @@ -102,23 +102,23 @@ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 192 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/tut2.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 501 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/tut3.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 191 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/tut3.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 356 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/tut3.htt │ │ │ │ -rw-r--r-- 0 root (0) root (0) 297 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tut/tut4.htt │ │ │ │ -rw-r--r-- 0 root (0) root (0) 10517 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tutorial.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3393 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/tutorial.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 7804 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/undef.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 8195 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/undef.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 460 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/undef.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 9417 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/unset.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 8800 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/unset.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 658 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/unset.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 7681 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/usage.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 2959 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/usage.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 13147 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/use.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 14597 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/use.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 3300 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/use.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 10682 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/while.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 10197 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/while.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 938 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/while.htp │ │ │ │ -rw-r--r-- 0 root (0) root (0) 5288 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/wishlist.html │ │ │ │ -rw-r--r-- 0 root (0) root (0) 1311 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/wishlist.htp │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc-base/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 235 2020-06-14 17:36:12.000000 ./usr/share/doc-base/htp.htp │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/lintian/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/lintian/overrides/ │ │ │ ├── ./usr/share/doc/htp/alttext.html │ │ │ │ @@ -114,16 +114,27 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -<[ref]alttext name="imagename" [ text="imagetext" ]>
│ │ │ │ + <[ref]def name="imghr">
│ │ │ │ +   <table border="0" cellspacing="0" cellpadding="0">
│ │ │ │ +   <tr>
│ │ │ │ +    <td width=10><[ref]img src="leftsep.png"></td>
│ │ │ │ +    <td width="95%" background="midsep.png">&nbsp;</td>
│ │ │ │ +    <td width=10><[ref]img src="rightsep.png"></td>
│ │ │ │ +   </tr>
│ │ │ │ +   </table>
│ │ │ │ + <[ref]/def>
│ │ │ │
│ │ │ │ + paragraph
│ │ │ │ + <imghr>
│ │ │ │ + paragraph
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ ALTTEXT declares an ALT attribute for any IMG tag with a SRC matching the ALTTEXT NAME. │ │ │ │ Since relative paths can be used to point to the same image, only the │ │ │ │ filename is considered in all comparisons. │ │ │ │

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,50 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: AALLTTTTEEXXTT ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n <_[_[_r_e_f_]_]_a_l_t_t_e_x_t name="imagename" [ text="imagetext" │ │ │ │ │ -  _L_i_c_e_n_s_e ]> │ │ │ │ │ -  _T_u_t_o_r_i_a_l │ │ │ │ │ -  _U_s_a_g_e ********** ssyynnooppssiiss ********** │ │ │ │ │ -  HTP Tags AALLTTTTEEXXTT declares an ALT attribute for any _I_M_G tag │ │ │ │ │ -  [>] _A_L_T_T_E_X_T with a SRC matching the ALTTEXT NAME. Since │ │ │ │ │ -    _B_L_O_C_K relative paths can be used to point to the same │ │ │ │ │ -    _B_L_O_C_K_D_E_F image, only the filename is considered in all │ │ │ │ │ -    _D_E_F comparisons. │ │ │ │ │ -    _F_I_L_E When an IMG tag with a matching source is │ │ │ │ │ -    _I_F encountered, htp will add an ALT attribute only if │ │ │ │ │ -    _I_N_C one is not already present. This allows for ALT │ │ │ │ │ -    _I_M_G text to be overridden on specific images and │ │ │ │ │ -    _I_M_A_G_E_U_R_L default text on all others. │ │ │ │ │ -    _O_P_T For example: │ │ │ │ │ -    _O_U_T_P_U_T An ALTTEXT tag with a name but no text attribute │ │ │ │ │ -    _Q_U_O_T_E removes any ALT mapping for this image. Successing │ │ │ │ │ -    _S_E_T IMG tags with a matching SRC name are not changed. │ │ │ │ │ -    _U_N_D_E_F Since this is useful for an image used throughout a │ │ │ │ │ -    _U_N_S_E_T set of documents, ALTTEXT is most appropriate in an │ │ │ │ │ -    _U_S_E_,_ _$ _i_n_c_l_u_d_e_ _f_i_l_e or a _d_e_f_a_u_l_t_ _f_i_l_e. │ │ │ │ │ -    _W_H_I_L_E In addition to ALTTEXT, htp can also automatically │ │ │ │ │ -    _<_!_-_-_- add WIDTH and HEIGHT attributes to _I_M_G tags. │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n  <_[_[_r_e_f_]_]_d_e_f name="imghr"> │ │ │ │ │ +  _L_i_c_e_n_s_e     │ │ │ │ │ +  _U_s_a_g_e     │ │ │ │ │ +  HTP Tags     │ │ │ │ │ +    _D_E_F     │ │ │ │ │ +    _I_N_C    
<_[_[_r_e_f_]_]_i_m_g src="leftsep.png">] _A_L_T_T_E_X_T td> │ │ │ │ │ +    _B_L_O_C_K      <_[_[_r_e_f_]_]_i_m_g src="rightsep.png"> │ │ │ │ │ +    _I_F    
│ │ │ │ │ +    _I_M_G  <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _I_M_A_G_E_U_R_L │ │ │ │ │ +    _O_P_T  paragraph │ │ │ │ │ +    _O_U_T_P_U_T   │ │ │ │ │ +    _Q_U_O_T_E  paragraph │ │ │ │ │ +    _S_E_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _U_N_D_E_F AALLTTTTEEXXTT declares an ALT attribute for any _I_M_G tag │ │ │ │ │ +    _U_N_S_E_T with a SRC matching the ALTTEXT NAME. Since │ │ │ │ │ +    _U_S_E_,_ _$ relative paths can be used to point to the same │ │ │ │ │ +    _W_H_I_L_E image, only the filename is considered in all │ │ │ │ │ +    _<_!_-_-_- comparisons. │ │ │ │ │ +  _H_i_s_t_o_r_y When an IMG tag with a matching source is │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t encountered, htp will add an ALT attribute only if │ │ │ │ │ +  _B_u_g_s one is not already present. This allows for ALT │ │ │ │ │ + text to be overridden on specific images and │ │ │ │ │ + default text on all others. │ │ │ │ │ + For example: │ │ │ │ │ + An ALTTEXT tag with a name but no text attribute │ │ │ │ │ + removes any ALT mapping for this image. Successing │ │ │ │ │ + IMG tags with a matching SRC name are not changed. │ │ │ │ │ + Since this is useful for an image used throughout a │ │ │ │ │ + set of documents, ALTTEXT is most appropriate in an │ │ │ │ │ + _i_n_c_l_u_d_e_ _f_i_l_e or a _d_e_f_a_u_l_t_ _f_i_l_e. │ │ │ │ │ + In addition to ALTTEXT, htp can also automatically │ │ │ │ │ + add WIDTH and HEIGHT attributes to _I_M_G tags. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/block.html │ │ │ │ @@ -114,14 +114,27 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ + <[ref]def name="imghr">
│ │ │ │ +   <table border="0" cellspacing="0" cellpadding="0">
│ │ │ │ +   <tr>
│ │ │ │ +    <td width=10><[ref]img src="leftsep.png"></td>
│ │ │ │ +    <td width="95%" background="midsep.png">&nbsp;</td>
│ │ │ │ +    <td width=10><[ref]img src="rightsep.png"></td>
│ │ │ │ +   </tr>
│ │ │ │ +   </table>
│ │ │ │ + <[ref]/def>
│ │ │ │ +
│ │ │ │ + paragraph
│ │ │ │ + <imghr>
│ │ │ │ + paragraph
│ │ │ │

│ │ │ │

synopsis

│ │ │ │

│ │ │ │ BLOCK and /BLOCK are used to create block macros, which │ │ │ │ are similar in use to SET macros, but can be │ │ │ │ multi-line definitions. │ │ │ │

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,53 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: BBLLOOCCKK,, //BBLLOOCCKK ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _L_i_c_e_n_s_e BBLLOOCCKK aanndd //BBLLOOCCKK are used to create block macros, │ │ │ │ │ -  _T_u_t_o_r_i_a_l which are similar in use to _S_E_T macros, but can be │ │ │ │ │ -  _U_s_a_g_e multi-line definitions. │ │ │ │ │ -  HTP Tags Any text and formatting may be set inside the │ │ │ │ │ -    _A_L_T_T_E_X_T block. You can use any htp or user defined metatag │ │ │ │ │ -  [>] _B_L_O_C_K including _F_I_L_E_ _I_N_C_L_U_D_E. The metatags won't be │ │ │ │ │ -    _B_L_O_C_K_D_E_F expanded before the block is USEd except if you │ │ │ │ │ -    _D_E_F give the _E_X_P_A_N_D parameter. │ │ │ │ │ -    _F_I_L_E The block macro is dereferenced (expanded) with the │ │ │ │ │ -    _I_F _U_S_E_ _t_a_g_ _o_r_ _t_h_e_ _'_$_'_ _o_p_e_r_a_t_o_r. See the notes on the │ │ │ │ │ -    _I_N_C _U_S_E tag on how to pass parameters to a block macro. │ │ │ │ │ -    _I_M_G │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n  <_[_[_r_e_f_]_]_d_e_f name="imghr"> │ │ │ │ │ +  _L_i_c_e_n_s_e     │ │ │ │ │ +  _U_s_a_g_e     │ │ │ │ │ +  HTP Tags     │ │ │ │ │ +    _D_E_F     │ │ │ │ │ +    _I_N_C    
<_[_[_r_e_f_]_]_i_m_g src="leftsep.png"> │ │ │ │ │ +  [>] _B_L_O_C_K      <_[_[_r_e_f_]_]_i_m_g src="rightsep.png"> │ │ │ │ │ +    _I_F    
│ │ │ │ │ +    _I_M_G  <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │     _I_M_A_G_E_U_R_L │ │ │ │ │ -    _O_P_T │ │ │ │ │ -    _O_U_T_P_U_T │ │ │ │ │ -    _Q_U_O_T_E │ │ │ │ │ -    _S_E_T │ │ │ │ │ -    _U_N_D_E_F │ │ │ │ │ -    _U_N_S_E_T │ │ │ │ │ -    _U_S_E_,_ _$ │ │ │ │ │ -    _W_H_I_L_E │ │ │ │ │ -    _<_!_-_-_- │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +    _O_P_T  paragraph │ │ │ │ │ +    _O_U_T_P_U_T   │ │ │ │ │ +    _Q_U_O_T_E  paragraph │ │ │ │ │ +    _S_E_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _U_N_D_E_F BBLLOOCCKK aanndd //BBLLOOCCKK are used to create block macros, │ │ │ │ │ +    _U_N_S_E_T which are similar in use to _S_E_T macros, but can be │ │ │ │ │ +    _U_S_E_,_ _$ multi-line definitions. │ │ │ │ │ +    _W_H_I_L_E Any text and formatting may be set inside the │ │ │ │ │ +    _<_!_-_-_- block. You can use any htp or user defined metatag │ │ │ │ │ +  _H_i_s_t_o_r_y including _F_I_L_E_ _I_N_C_L_U_D_E. The metatags won't be │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t expanded before the block is USEd except if you │ │ │ │ │ +  _B_u_g_s give the _E_X_P_A_N_D parameter. │ │ │ │ │ + The block macro is dereferenced (expanded) with the │ │ │ │ │ + _U_S_E_ _t_a_g_ _o_r_ _t_h_e_ _'_$_'_ _o_p_e_r_a_t_o_r. See the notes on the │ │ │ │ │ + _U_S_E tag on how to pass parameters to a block macro. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │   _p_a_g_e_ _s_o_u_r_c_e │ │ │ ├── ./usr/share/doc/htp/blockdef.html │ │ │ │ @@ -114,34 +114,48 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ + <[ref]def name="imghr">
│ │ │ │ +   <table border="0" cellspacing="0" cellpadding="0">
│ │ │ │ +   <tr>
│ │ │ │ +    <td width=10><[ref]img src="leftsep.png"></td>
│ │ │ │ +    <td width="95%" background="midsep.png">&nbsp;</td>
│ │ │ │ +    <td width=10><[ref]img src="rightsep.png"></td>
│ │ │ │ +   </tr>
│ │ │ │ +   </table>
│ │ │ │ + <[ref]/def>
│ │ │ │ +
│ │ │ │ + paragraph
│ │ │ │ + <imghr>
│ │ │ │ + paragraph
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ BLOCKDEF creates block metatags, which is a fancy way of saying it │ │ │ │ creates new block tags. A block tag is a tag that takes a whole block │ │ │ │ as additional parameter. This block is surrounded by <tagname> and │ │ │ │ </tagname>. The contents of this block are automatically stored │ │ │ │ in the block macro named BLOCK. │ │ │ │

For example:

│ │ │ │

│ │ │ │ -    <[ref]def name="centered">
│ │ │ │ -    <p align=center>
│ │ │ │ -    <[ref]/def>
│ │ │ │ +  <[ref]WHILE NOT i="10">
│ │ │ │ +    ...
│ │ │ │ +    <[ref]INC i>
│ │ │ │ +  <[ref]/WHILE>
│ │ │ │ +
│ │ │ │
│ │ │ │ -    <centered>
│ │ │ │ -    This text is centered.
│ │ │ │ -(CONDENSE|SEMICONDENSE|NOCONDENSE)>
│ │ │ │ -<[ref]OPT DELIM=(HTML|SQUARE|CURLY)>
│ │ │ │ -<[ref]OPT (XML|XML=FALSE)>
│ │ │ │ +  <[ref]def name="/bigfont">
│ │ │ │ +    </font>
│ │ │ │ +  <[ref]/def>
│ │ │ │
│ │ │ │ +  <bigfont>Some large text</bigfont>
│ │ │ │

│ │ │ │

│ │ │ │ All block metatags have the implicit option EXPAND, which tells htp to expand the contents │ │ │ │ of the block before the definition is expanded. │ │ │ │

│ │ │ │

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,54 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: BBLLOOCCKKDDEEFF,, //BBLLOOCCKKDDEEFF ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _L_i_c_e_n_s_e BBLLOOCCKKDDEEFF creates block _m_e_t_a_t_a_g_s, which is a fancy │ │ │ │ │ -  _T_u_t_o_r_i_a_l way of saying it creates new block tags. A block │ │ │ │ │ -  _U_s_a_g_e tag is a tag that takes a whole block as additional │ │ │ │ │ -  HTP Tags parameter. This block is surrounded by │ │ │ │ │ -    _A_L_T_T_E_X_T and . The contents of this block are │ │ │ │ │ -    _B_L_O_C_K automatically stored in the block macro named │ │ │ │ │ -  [>] _B_L_O_C_K_D_E_F BLOCK. │ │ │ │ │ -    _D_E_F For example: │ │ │ │ │ -    _F_I_L_E     <_[_[_r_e_f_]_]_d_e_f name="centered"> │ │ │ │ │ -    _I_F    

│ │ │ │ │ -    _I_N_C     <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ -    _I_M_G │ │ │ │ │ -    _I_M_A_G_E_U_R_L     │ │ │ │ │ -    _O_P_T     This text is centered. │ │ │ │ │ -    _O_U_T_P_U_T (CONDENSE|SEMICONDENSE|NOCONDENSE)> │ │ │ │ │ -    _Q_U_O_T_E <_[_[_r_e_f_]_]_O_P_T DELIM=(HTML|SQUARE|CURLY)> │ │ │ │ │ -    _S_E_T <_[_[_r_e_f_]_]_O_P_T (XML|XML=FALSE)> │ │ │ │ │ -    _U_N_D_E_F │ │ │ │ │ -    _U_N_S_E_T All block metatags have the implicit option _E_X_P_A_N_D, │ │ │ │ │ -    _U_S_E_,_ _$ which tells htp to expand the contents of the block │ │ │ │ │ -    _W_H_I_L_E before the definition is expanded. │ │ │ │ │ -    _<_!_-_-_- A more thorough discussion and more elaborate │ │ │ │ │ -  _H_i_s_t_o_r_y examples are discussed in the _m_e_t_a_t_a_g section. │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n  <_[_[_r_e_f_]_]_d_e_f name="imghr"> │ │ │ │ │ +  _L_i_c_e_n_s_e     │ │ │ │ │ +  _U_s_a_g_e     │ │ │ │ │ +  HTP Tags     │ │ │ │ │ +    _D_E_F     │ │ │ │ │ +    _I_N_C    
<_[_[_r_e_f_]_]_i_m_g src="leftsep.png"> │ │ │ │ │ +    _B_L_O_C_K     ] _B_L_O_C_K_D_E_F background="midsep.png"> <_[_[_r_e_f_]_]_i_m_g src="rightsep.png"> │ │ │ │ │ +    _I_F    
│ │ │ │ │ +    _I_M_G  <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _I_M_A_G_E_U_R_L │ │ │ │ │ +    _O_P_T  paragraph │ │ │ │ │ +    _O_U_T_P_U_T   │ │ │ │ │ +    _Q_U_O_T_E  paragraph │ │ │ │ │ +    _S_E_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _U_N_D_E_F BBLLOOCCKKDDEEFF creates block _m_e_t_a_t_a_g_s, which is a fancy │ │ │ │ │ +    _U_N_S_E_T way of saying it creates new block tags. A block │ │ │ │ │ +    _U_S_E_,_ _$ tag is a tag that takes a whole block as additional │ │ │ │ │ +    _W_H_I_L_E parameter. This block is surrounded by │ │ │ │ │ +    _<_!_-_-_- and . The contents of this block are │ │ │ │ │ +  _H_i_s_t_o_r_y automatically stored in the block macro named │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t BLOCK. │ │ │ │ │ +  _B_u_g_s For example: │ │ │ │ │ +   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +     ... │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ +   <_[_[_r_e_f_]_]_d_e_f name="/bigfont"> │ │ │ │ │ +     │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ + │ │ │ │ │ +   Some large text │ │ │ │ │ + All block metatags have the implicit option _E_X_P_A_N_D, │ │ │ │ │ + which tells htp to expand the contents of the block │ │ │ │ │ + before the definition is expanded. │ │ │ │ │ + A more thorough discussion and more elaborate │ │ │ │ │ + examples are discussed in the _m_e_t_a_t_a_g section. │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/comment.html │ │ │ │ @@ -114,14 +114,27 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ + <[ref]def name="imghr">
│ │ │ │ +   <table border="0" cellspacing="0" cellpadding="0">
│ │ │ │ +   <tr>
│ │ │ │ +    <td width=10><[ref]img src="leftsep.png"></td>
│ │ │ │ +    <td width="95%" background="midsep.png">&nbsp;</td>
│ │ │ │ +    <td width=10><[ref]img src="rightsep.png"></td>
│ │ │ │ +   </tr>
│ │ │ │ +   </table>
│ │ │ │ + <[ref]/def>
│ │ │ │ +
│ │ │ │ + paragraph
│ │ │ │ + <imghr>
│ │ │ │ + paragraph
│ │ │ │

│ │ │ │

synopsis

│ │ │ │

│ │ │ │ This is a simple comment that is not included in the output. This is useful │ │ │ │ when commenting metatags, since the metatags do not appear the output either. │ │ │ │ Example: │ │ │ │

│ │ │ │ @@ -129,14 +142,38 @@ │ │ │ │

│ │ │ │

│ │ │ │ Note that these comments should not include < or >, that is you │ │ │ │ should not use it to comment out htp code. For that purpose use something │ │ │ │ like this: │ │ │ │

│ │ │ │

│ │ │ │ +  <[ref]DEF NAME="HEADERIMG" OPTION="SRC TITLE SIZE">
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        <FONT SIZE=${size}>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +    <[ref]IMG SRC=pics/${src}>
│ │ │ │ +    <[ref]USE title>
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        </FONT>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" TITLE="Normal sized title">
│ │ │ │ +
│ │ │ │ +  This will fail:
│ │ │ │ +  <HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">
│ │ │ │ +
│ │ │ │ +  Instead, use * like this:
│ │ │ │ +  <[ref]DEF NAME="MYIMG" OPTION="SRC *">
│ │ │ │ +    <[ref]IMG SRC="pics/${src}" $*>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +   
│ │ │ │ +  <MYIMG SRC="logo.gif" ALT="Our logo">
│ │ │ │

│ │ │ │

Make sure that the variable is never defined and xyz should be the │ │ │ │ reason why you don't want to include this block

│ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,81 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: <, │ │ │ │ │ -    _B_L_O_C_K that is you should not use it to comment out htp │ │ │ │ │ -    _B_L_O_C_K_D_E_F code. For that purpose use something like this: │ │ │ │ │ -    _D_E_F Make sure that the variable is never defined and │ │ │ │ │ -    _F_I_L_E xyz should be the reason why you don't want to │ │ │ │ │ -    _I_F include this block │ │ │ │ │ -    _I_N_C │ │ │ │ │ -    _I_M_G │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n  <_[_[_r_e_f_]_]_d_e_f name="imghr"> │ │ │ │ │ +  _L_i_c_e_n_s_e     │ │ │ │ │ +  _U_s_a_g_e     │ │ │ │ │ +  HTP Tags     │ │ │ │ │ +    _D_E_F     │ │ │ │ │ +    _I_N_C    
<_[_[_r_e_f_]_]_i_m_g src="leftsep.png"> │ │ │ │ │ +    _B_L_O_C_K      <_[_[_r_e_f_]_]_i_m_g src="rightsep.png"> │ │ │ │ │ +    _I_F    
│ │ │ │ │ +    _I_M_G  <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │     _I_M_A_G_E_U_R_L │ │ │ │ │ -    _O_P_T │ │ │ │ │ -    _O_U_T_P_U_T │ │ │ │ │ -    _Q_U_O_T_E │ │ │ │ │ -    _S_E_T │ │ │ │ │ -    _U_N_D_E_F │ │ │ │ │ -    _U_N_S_E_T │ │ │ │ │ -    _U_S_E_,_ _$ │ │ │ │ │ -    _W_H_I_L_E │ │ │ │ │ -  [>] _<_!_-_-_- │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +    _O_P_T  paragraph │ │ │ │ │ +    _O_U_T_P_U_T   │ │ │ │ │ +    _Q_U_O_T_E  paragraph │ │ │ │ │ +    _S_E_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _U_N_D_E_F This is a simple comment that is not included in │ │ │ │ │ +    _U_N_S_E_T the output. This is useful when commenting │ │ │ │ │ +    _U_S_E_,_ _$ metatags, since the metatags do not appear the │ │ │ │ │ +    _W_H_I_L_E output either. Example: │ │ │ │ │ +  [>] _<_!_-_-_- Note that these comments should not include < or >, │ │ │ │ │ +  _H_i_s_t_o_r_y that is you should not use it to comment out htp │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t code. For that purpose use something like this: │ │ │ │ │ +  _B_u_g_s   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ + SIZE"> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +         │ │ │ │ │ +     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +         │ │ │ │ │ +     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   This will fail: │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   Instead, use * like this: │ │ │ │ │ +   <_[_[_r_e_f_]_]_D_E_F NAME="MYIMG" OPTION="SRC *"> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_M_G SRC="pics/${src}" $*> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + Make sure that the variable is never defined and │ │ │ │ │ + xyz should be the reason why you don't want to │ │ │ │ │ + include this block │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │   _p_a_g_e_ _s_o_u_r_c_e │ │ │ │ │   _h_t_p_ _p_r_o_j_e_c_t │ │ │ ├── ./usr/share/doc/htp/def.html │ │ │ │ @@ -124,23 +124,18 @@ │ │ │ │ DEF creates metatags, which is a │ │ │ │ fancy way of saying it creates new tags. The mechanism is very similar to │ │ │ │ BLOCK macros, except that the USE │ │ │ │ tag is not used to expand them. Instead, they are expanded by their own name. │ │ │ │ For example: │ │ │ │

│ │ │ │

│ │ │ │ -    <[ref]def name="centered">
│ │ │ │ -    <p align=center>
│ │ │ │ -    <[ref]/def>
│ │ │ │ -
│ │ │ │ -    <centered>
│ │ │ │ -    This text is centered.
│ │ │ │ -(CONDENSE|SEMICONDENSE|NOCONDENSE)>
│ │ │ │ -<[ref]OPT DELIM=(HTML|SQUARE|CURLY)>
│ │ │ │ -<[ref]OPT (XML|XML=FALSE)>
│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │ +ers ...] [noexpand]>
│ │ │ │ +<... $macroname ...>
│ │ │ │ +<... ${macroname} ...>
│ │ │ │
│ │ │ │

│ │ │ │

│ │ │ │ Some metatags will require an opening and closing tag (comparable to │ │ │ │ and ). In this case, you should use the BLOCKDEF macro. Another slightly faster │ │ │ │ alternative is to use two metatags, the opening tag and the closing │ │ │ │ @@ -153,15 +148,16 @@ │ │ │ │

│ │ │ │ Options can be passed to a metatag, which can then expand as if it were │ │ │ │ a SET macro. Option names are parameterized with │ │ │ │ the OPTION attribute. Multiple options can be listed by separating their │ │ │ │ name with a space (which therefore requires they be surrounded by quotes.) │ │ │ │

│ │ │ │

│ │ │ │ -    <[ref]IF name>...<[ref]/IF>
│ │ │ │ +<a href="mailto:$email">mailto hyperlink</a>
│ │ │ │ +<a href="http://$domain/~${username}/">another hyperlink</a>
│ │ │ │

│ │ │ │

│ │ │ │ htp will do very specific checking of parameters when a metatag is │ │ │ │ invoked. htp assumes that all parameter options to the metatag are │ │ │ │ optional. This is why the HEADERIMG definition uses IF to verify the │ │ │ │ SIZE option is defined before expanding it in the block. If a │ │ │ │ parameter is required, simply expand it without first checking. When │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -3,40 +3,37 @@ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │   _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │   _L_i_c_e_n_s_e DDEEFF creates _m_e_t_a_t_a_g_s, which is a fancy way of │ │ │ │ │   _T_u_t_o_r_i_a_l saying it creates new tags. The mechanism is very │ │ │ │ │   _U_s_a_g_e similar to _B_L_O_C_K macros, except that the _U_S_E tag is │ │ │ │ │   HTP Tags not used to expand them. Instead, they are expanded │ │ │ │ │     _A_L_T_T_E_X_T by their own name. For example: │ │ │ │ │ -    _B_L_O_C_K     <_[_[_r_e_f_]_]_d_e_f name="centered"> │ │ │ │ │ -    _B_L_O_C_K_D_E_F    

│ │ │ │ │ -  [>] _D_E_F     <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ -    _F_I_L_E │ │ │ │ │ -    _I_F     │ │ │ │ │ -    _I_N_C     This text is centered. │ │ │ │ │ -    _I_M_G (CONDENSE|SEMICONDENSE|NOCONDENSE)> │ │ │ │ │ -    _I_M_A_G_E_U_R_L <_[_[_r_e_f_]_]_O_P_T DELIM=(HTML|SQUARE|CURLY)> │ │ │ │ │ -    _O_P_T <_[_[_r_e_f_]_]_O_P_T (XML|XML=FALSE)> │ │ │ │ │ -    _O_U_T_P_U_T │ │ │ │ │ -    _Q_U_O_T_E Some metatags will require an opening and closing │ │ │ │ │ -    _S_E_T tag (comparable to │ │ │ │ │ -    _U_N_D_E_F and │ │ │ │ │ -    _U_N_S_E_T ). In this case, you should use the _B_L_O_C_K_D_E_F macro. │ │ │ │ │ -    _U_S_E_,_ _$ Another slightly faster alternative is to use two │ │ │ │ │ -    _W_H_I_L_E metatags, the opening tag and the closing tag with │ │ │ │ │ -    _<_!_-_-_- a preceding slash. For example: │ │ │ │ │ -  _H_i_s_t_o_r_y You should really use _B_L_O_C_K_D_E_F, though, as it will │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t check for matching end tag. It is not that slower. │ │ │ │ │ -  _B_u_g_s Options can be passed to a metatag, which can then │ │ │ │ │ - expand as if it were a _S_E_T macro. Option names are │ │ │ │ │ - parameterized with the OPTION attribute. Multiple │ │ │ │ │ - options can be listed by separating their name with │ │ │ │ │ - a space (which therefore requires they be │ │ │ │ │ - surrounded by quotes.) │ │ │ │ │ -     <_[_[_r_e_f_]_]_I_F name>...<_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _B_L_O_C_K     <_[_[_r_e_f_]_]_I_N_C i="1" j="-1"> │ │ │ │ │ +    _B_L_O_C_K_D_E_F ers ...] [noexpand]> │ │ │ │ │ +  [>] _D_E_F <... $macroname ...> │ │ │ │ │ +    _F_I_L_E <... ${macroname} ...> │ │ │ │ │ +    _I_F │ │ │ │ │ +    _I_N_C Some metatags will require an opening and closing │ │ │ │ │ +    _I_M_G tag (comparable to │ │ │ │ │ +    _I_M_A_G_E_U_R_L and │ │ │ │ │ +    _O_P_T ). In this case, you should use the _B_L_O_C_K_D_E_F macro. │ │ │ │ │ +    _O_U_T_P_U_T Another slightly faster alternative is to use two │ │ │ │ │ +    _Q_U_O_T_E metatags, the opening tag and the closing tag with │ │ │ │ │ +    _S_E_T a preceding slash. For example: │ │ │ │ │ +    _U_N_D_E_F You should really use _B_L_O_C_K_D_E_F, though, as it will │ │ │ │ │ +    _U_N_S_E_T check for matching end tag. It is not that slower. │ │ │ │ │ +    _U_S_E_,_ _$ Options can be passed to a metatag, which can then │ │ │ │ │ +    _W_H_I_L_E expand as if it were a _S_E_T macro. Option names are │ │ │ │ │ +    _<_!_-_-_- parameterized with the OPTION attribute. Multiple │ │ │ │ │ +  _H_i_s_t_o_r_y options can be listed by separating their name with │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t a space (which therefore requires they be │ │ │ │ │ +  _B_u_g_s surrounded by quotes.) │ │ │ │ │ + mailto hyperlink │ │ │ │ │ + another │ │ │ │ │ + hyperlink │ │ │ │ │ htp will do very specific checking of parameters │ │ │ │ │ when a metatag is invoked. htp assumes that all │ │ │ │ │ parameter options to the metatag are optional. This │ │ │ │ │ is why the HEADERIMG definition uses IF to verify │ │ │ │ │ the SIZE option is defined before expanding it in │ │ │ │ │ the block. If a parameter is required, simply │ │ │ │ │ expand it without first checking. When htp expands │ │ │ ├── ./usr/share/doc/htp/expand.html │ │ │ │ @@ -98,17 +98,31 @@ │ │ │ │

However, if the block tag is marked with the expand │ │ │ │ modifier it is expanded immediately. This is useful if you want to │ │ │ │ store something in a block macro, that depends on the current value of │ │ │ │ another macro. This other macro may no longer have the correct value │ │ │ │ when the macro is expanded. Here is some code that demonstrate when │ │ │ │ the htp tags are expanded:

│ │ │ │

│ │ │ │ + 1.  <[ref]def name="imghr">
│ │ │ │ + 2.    <table border="0" cellspacing="0" cellpadding="0">
│ │ │ │ + 3.    <tr>
│ │ │ │ + 4.     <td width=10><[ref]img src="leftsep.png"></td>
│ │ │ │ + 5.     <td width="95%" background="midsep.png">&nbsp;</td>
│ │ │ │ + 6.     <td width=10><[ref]img src="rightsep.png"></td>
│ │ │ │ + 7.    </tr>
│ │ │ │ + 8.    </table>
│ │ │ │ + 9.  <[ref]/def>
│ │ │ │ +10.
│ │ │ │ +11.  paragraph
│ │ │ │ +12.  <imghr>
│ │ │ │ +13.  paragraph
│ │ │ │

│ │ │ │ This produces the following: │ │ │ │

│ │ │ │ +    <[ref]unset email_addr>
│ │ │ │

│ │ │ │

│ │ │ │ When block a and block b are defined in lines 2-7 the contents of a │ │ │ │ are taken literally, however, the contents for b are already expanded │ │ │ │ so the macro time is evaluated. So a is expanded when it │ │ │ │ is used, while the contents of b are already expanded. │ │ │ │

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -24,15 +24,33 @@ │ │ │ │ │ However, if the block tag is marked with the expand │ │ │ │ │ modifier it is expanded immediately. This is useful │ │ │ │ │ if you want to store something in a block macro, │ │ │ │ │ that depends on the current value of another macro. │ │ │ │ │ This other macro may no longer have the correct │ │ │ │ │ value when the macro is expanded. Here is some code │ │ │ │ │ that demonstrate when the htp tags are expanded: │ │ │ │ │ +  1.  <_[_[_r_e_f_]_]_d_e_f name="imghr"> │ │ │ │ │ +  2.     │ │ │ │ │ +  3.     │ │ │ │ │ +  4.     │ │ │ │ │ +  5.     │ │ │ │ │ +  6.     │ │ │ │ │ +  7.     │ │ │ │ │ +  8.    
<_[_[_r_e_f_]_]_i_m_g │ │ │ │ │ + src="leftsep.png"> <_[_[_r_e_f_]_]_i_m_g │ │ │ │ │ + src="rightsep.png">
│ │ │ │ │ +  9.  <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ + 10. │ │ │ │ │ + 11.  paragraph │ │ │ │ │ + 12.   │ │ │ │ │ + 13.  paragraph │ │ │ │ │ This produces the following: │ │ │ │ │ +     <_[_[_r_e_f_]_]_u_n_s_e_t email_addr> │ │ │ │ │ When block a and block b are defined in lines 2- │ │ │ │ │ 7 the contents of a are taken literally, however, │ │ │ │ │ the contents for b are already expanded so the │ │ │ │ │ macro time is evaluated. So a is expanded when it │ │ │ │ │ is used, while the contents of b are already │ │ │ │ │ expanded. │ │ │ │ │ In line 10 and 12 the _[_[_r_e_f_]_]_u_s_e tag is used with │ │ │ ├── ./usr/share/doc/htp/file.html │ │ │ │ @@ -124,29 +124,57 @@ │ │ │ │ The output file's name, the current date and time, and the contents of │ │ │ │ another file may be included. Another file's time, date, or size may be │ │ │ │ added to the output file as well. │ │ │ │

│ │ │ │ As with all HTML, these tags do not have to be on their own line, so the │ │ │ │ following is perfectly acceptable: │ │ │ │

│ │ │ │ -<[ref]QUOTE TAG [ATTRIBUTE=VALUE ...]>
│ │ │ │ +  <[ref]WHILE NOT i="10">
│ │ │ │ +    ...
│ │ │ │ +    <[ref]INC i>
│ │ │ │ +  <[ref]/WHILE>
│ │ │ │
│ │ │ │ -expand]>
│ │ │ │ -<... $macroname ...>
│ │ │ │ -<... ${macroname} ...>
│ │ │ │
│ │ │ │ +  <[ref]def name="/bigfont">
│ │ │ │ +    </font>
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <bigfont>Some large text</bigfont>
│ │ │ │

│ │ │ │

│ │ │ │

NAME, TIME, SIZE

│ │ │ │

│ │ │ │ To include information about another file, such as an archive file or │ │ │ │ graphic image, specify its name with the NAME attribute followed by the │ │ │ │ type of information to be displayed: │ │ │ │

│ │ │ │ -    <[ref]unset email_addr>
│ │ │ │ +  <[ref]DEF NAME="HEADERIMG" OPTION="SRC TITLE SIZE">
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        <FONT SIZE=${size}>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +    <[ref]IMG SRC=pics/${src}>
│ │ │ │ +    <[ref]USE title>
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        </FONT>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" TITLE="Normal sized title">
│ │ │ │ +
│ │ │ │ +  This will fail:
│ │ │ │ +  <HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">
│ │ │ │ +
│ │ │ │ +  Instead, use * like this:
│ │ │ │ +  <[ref]DEF NAME="MYIMG" OPTION="SRC *">
│ │ │ │ +    <[ref]IMG SRC="pics/${src}" $*>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +   
│ │ │ │ +  <MYIMG SRC="logo.gif" ALT="Our logo">
│ │ │ │

│ │ │ │

│ │ │ │ For file size information, the value BYTE, KBYTE, etc. dictates how the │ │ │ │ information is displayed. In anything other than byte format, the information │ │ │ │ is displayed in floating-point notation. The amount of precision (the number │ │ │ │ of digits to the right of the decimal point) can be set with the optional │ │ │ │ PRECISION attribute. The default precision is zero (0), which means no │ │ │ │ @@ -175,14 +203,21 @@ │ │ │ │

│ │ │ │ Additional parameters can be set in the FILE INCLUDE tag, which are │ │ │ │ interpreted as macros that are "passed" to the included file. The macros │ │ │ │ are available only to the include file (and any macros or included files it │ │ │ │ holds). After the file is completely included, the macros are no longer │ │ │ │ available. So: │ │ │ │

│ │ │ │ +<[ref]file include="header.hti">
│ │ │ │ +  <[ref]set sect-ctr="1">
│ │ │ │ +  <[ref]while sect-${sect-ctr}>
│ │ │ │ +    <[ref]use sect-${sect-ctr}>
│ │ │ │ +    <[ref]inc sect-ctr>
│ │ │ │ +  <[ref]/while>
│ │ │ │ +<[ref]file include="footer.hti">
│ │ │ │

│ │ │ │

│ │ │ │ Macros named "name" and "email" are set, and available inside the included │ │ │ │ file. They are not available, however, past the tag (which is why the │ │ │ │ second statement will fail.) │ │ │ │

│ │ │ │

TEMPLATE

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -6,31 +6,63 @@ │ │ │ │ │   _T_u_t_o_r_i_a_l purpose. The output file's name, the current date │ │ │ │ │   _U_s_a_g_e and time, and the contents of another file may be │ │ │ │ │   HTP Tags included. Another file's time, date, or size may be │ │ │ │ │     _A_L_T_T_E_X_T added to the output file as well. │ │ │ │ │     _B_L_O_C_K As with all HTML, these tags do not have to be on │ │ │ │ │     _B_L_O_C_K_D_E_F their own line, so the following is perfectly │ │ │ │ │     _D_E_F acceptable: │ │ │ │ │ -  [>] _F_I_L_E <_[_[_r_e_f_]_]_Q_U_O_T_E TAG [ATTRIBUTE=VALUE ...]> │ │ │ │ │ -    _I_F │ │ │ │ │ -    _I_N_C expand]> │ │ │ │ │ -    _I_M_G <... $macroname ...> │ │ │ │ │ -    _I_M_A_G_E_U_R_L <... ${macroname} ...> │ │ │ │ │ +  [>] _F_I_L_E   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +    _I_F     ... │ │ │ │ │ +    _I_N_C     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +    _I_M_G   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +    _I_M_A_G_E_U_R_L │ │ │ │ │     _O_P_T │ │ │ │ │ -    _O_U_T_P_U_T ******** NNAAMMEE,, TTIIMMEE,, SSIIZZEE ******** │ │ │ │ │ -    _Q_U_O_T_E To include information about another file, such as │ │ │ │ │ -    _S_E_T an archive file or graphic image, specify its name │ │ │ │ │ -    _U_N_D_E_F with the NAME attribute followed by the type of │ │ │ │ │ -    _U_N_S_E_T information to be displayed: │ │ │ │ │ -    _U_S_E_,_ _$     <_[_[_r_e_f_]_]_u_n_s_e_t email_addr> │ │ │ │ │ -    _W_H_I_L_E For file size information, the value BYTE, KBYTE, │ │ │ │ │ -    _<_!_-_-_- etc. dictates how the information is displayed. In │ │ │ │ │ -  _H_i_s_t_o_r_y anything other than byte format, the information is │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t displayed in floating-point notation. The amount of │ │ │ │ │ -  _B_u_g_s precision (the number of digits to the right of the │ │ │ │ │ +    _O_U_T_P_U_T   <_[_[_r_e_f_]_]_d_e_f name="/bigfont"> │ │ │ │ │ +    _Q_U_O_T_E     │ │ │ │ │ +    _S_E_T   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _U_N_D_E_F │ │ │ │ │ +    _U_N_S_E_T   Some large text │ │ │ │ │ +    _U_S_E_,_ _$ ******** NNAAMMEE,, TTIIMMEE,, SSIIZZEE ******** │ │ │ │ │ +    _W_H_I_L_E To include information about another file, such as │ │ │ │ │ +    _<_!_-_-_- an archive file or graphic image, specify its name │ │ │ │ │ +  _H_i_s_t_o_r_y with the NAME attribute followed by the type of │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t information to be displayed: │ │ │ │ │ +  _B_u_g_s   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ + SIZE"> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +         │ │ │ │ │ +     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +         │ │ │ │ │ +     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   This will fail: │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   Instead, use * like this: │ │ │ │ │ +   <_[_[_r_e_f_]_]_D_E_F NAME="MYIMG" OPTION="SRC *"> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_M_G SRC="pics/${src}" $*> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + For file size information, the value BYTE, KBYTE, │ │ │ │ │ + etc. dictates how the information is displayed. In │ │ │ │ │ + anything other than byte format, the information is │ │ │ │ │ + displayed in floating-point notation. The amount of │ │ │ │ │ + precision (the number of digits to the right of the │ │ │ │ │ decimal point) can be set with the optional │ │ │ │ │ PRECISION attribute. The default precision is zero │ │ │ │ │ (0), which means no fractional portion is │ │ │ │ │ displayed. │ │ │ │ │ At the request of many people, the TIME and DATE │ │ │ │ │ attributes will now accept formatting characters │ │ │ │ │ that are passed directly into the ANSI C library │ │ │ │ │ @@ -56,14 +88,21 @@ │ │ │ │ │ Additional parameters can be set in the FILE │ │ │ │ │ INCLUDE tag, which are interpreted as macros that │ │ │ │ │ are "passed" to the included file. The macros are │ │ │ │ │ available only to the include file (and any macros │ │ │ │ │ or included files it holds). After the file is │ │ │ │ │ completely included, the macros are no longer │ │ │ │ │ available. So: │ │ │ │ │ + <_[_[_r_e_f_]_]_f_i_l_e include="header.hti"> │ │ │ │ │ +   <_[_[_r_e_f_]_]_s_e_t sect-ctr="1"> │ │ │ │ │ +   <_[_[_r_e_f_]_]_w_h_i_l_e sect-${sect-ctr}> │ │ │ │ │ +     <_[_[_r_e_f_]_]_u_s_e sect-${sect-ctr}> │ │ │ │ │ +     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_w_h_i_l_e> │ │ │ │ │ + <_[_[_r_e_f_]_]_f_i_l_e include="footer.hti"> │ │ │ │ │ Macros named "name" and "email" are set, and │ │ │ │ │ available inside the included file. They are not │ │ │ │ │ available, however, past the tag (which is why the │ │ │ │ │ second statement will fail.) │ │ │ │ │ ******** TTEEMMPPLLAATTEE ******** │ │ │ │ │ A template file is nothing more than a default │ │ │ │ │ include file, one that is included once the input │ │ │ ├── ./usr/share/doc/htp/if.html │ │ │ │ @@ -122,26 +122,29 @@ │ │ │ │

synopsis

│ │ │ │ IF, NOT, ELSEIF, ELSE, and /IF are the building │ │ │ │ blocks for conditional processing. The basic form is shown above. │ │ │ │

"Conditional" is either a "compare" or "is defined" operation. A │ │ │ │ compare operator is a test of the value of a macro against a literal │ │ │ │ string: │ │ │ │

│ │ │ │ -<[ref]QUOTE TAG [ATTRIBUTE=VALUE ...]>
│ │ │ │ -
│ │ │ │ -expand]>
│ │ │ │ -<... $macroname ...>
│ │ │ │ -<... ${macroname} ...>
│ │ │ │ -
│ │ │ │ +<[ref]if disabled_because_xyz>
│ │ │ │ +  ...
│ │ │ │ +<[ref]/if>
│ │ │ │

│ │ │ │

│ │ │ │ and a defined operator is a test of a macro's existance: │ │ │ │

│ │ │ │

│ │ │ │ -    <[ref]unset email_addr>
│ │ │ │ +  <[ref]set sect-ctr="0">
│ │ │ │ +  <[ref]blockdef name="section">
│ │ │ │ +    <[ref]inc sect-ctr>
│ │ │ │ +    <[ref]block name="sect-${sect-ctr}" expand global>
│ │ │ │ +      <[ref]use block noexpand>
│ │ │ │ +    <[ref]/block>
│ │ │ │ +  <[ref]/blockdef>
│ │ │ │

│ │ │ │

│ │ │ │ If the NOT tag is present in the IF markup, the evaluation of the │ │ │ │ conditional is reversed. The first IF or ELSEIF condition that │ │ │ │ evaluates to true is chosen. If none of the conditions is true the │ │ │ │ ELSE block is taken if it is present. A conditional block │ │ │ │ must be closed with the /IF tag. IF tags can be nested. │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -4,33 +4,37 @@ │ │ │ │ │   _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │   _L_i_c_e_n_s_e IIFF,, NNOOTT,, EELLSSEEIIFF,, EELLSSEE,, aanndd //IIFF are the building │ │ │ │ │   _T_u_t_o_r_i_a_l blocks for conditional processing. The basic form │ │ │ │ │   _U_s_a_g_e is shown above. │ │ │ │ │   HTP Tags "Conditional" is either a "compare" or "is defined" │ │ │ │ │     _A_L_T_T_E_X_T operation. A compare operator is a test of the │ │ │ │ │     _B_L_O_C_K value of a macro against a literal string: │ │ │ │ │ -    _B_L_O_C_K_D_E_F <_[_[_r_e_f_]_]_Q_U_O_T_E TAG [ATTRIBUTE=VALUE ...]> │ │ │ │ │ -    _D_E_F │ │ │ │ │ -    _F_I_L_E expand]> │ │ │ │ │ -  [>] _I_F <... $macroname ...> │ │ │ │ │ -    _I_N_C <... ${macroname} ...> │ │ │ │ │ -    _I_M_G │ │ │ │ │ -    _I_M_A_G_E_U_R_L and a defined operator is a test of a macro's │ │ │ │ │ -    _O_P_T existance: │ │ │ │ │ -    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_u_n_s_e_t email_addr> │ │ │ │ │ -    _Q_U_O_T_E If the NOT tag is present in the IF markup, the │ │ │ │ │ -    _S_E_T evaluation of the conditional is reversed. The │ │ │ │ │ -    _U_N_D_E_F first IF or ELSEIF condition that evaluates to true │ │ │ │ │ -    _U_N_S_E_T is chosen. If none of the conditions is true the │ │ │ │ │ -    _U_S_E_,_ _$ ELSE block is taken if it is present. A conditional │ │ │ │ │ -    _W_H_I_L_E block mmuusstt be closed with the /IF tag. IF tags can │ │ │ │ │ -    _<_!_-_-_- be nested. │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +    _B_L_O_C_K_D_E_F <_[_[_r_e_f_]_]_i_f disabled_because_xyz> │ │ │ │ │ +    _D_E_F   ... │ │ │ │ │ +    _F_I_L_E <_[_[_r_e_f_]_]_/_i_f> │ │ │ │ │ +  [>] _I_F and a defined operator is a test of a macro's │ │ │ │ │ +    _I_N_C existance: │ │ │ │ │ +    _I_M_G   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ +    _I_M_A_G_E_U_R_L   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ +    _O_P_T     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ +    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" expand │ │ │ │ │ +    _Q_U_O_T_E global> │ │ │ │ │ +    _S_E_T       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ +    _U_N_D_E_F     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ +    _U_N_S_E_T   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ +    _U_S_E_,_ _$ If the NOT tag is present in the IF markup, the │ │ │ │ │ +    _W_H_I_L_E evaluation of the conditional is reversed. The │ │ │ │ │ +    _<_!_-_-_- first IF or ELSEIF condition that evaluates to true │ │ │ │ │ +  _H_i_s_t_o_r_y is chosen. If none of the conditions is true the │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t ELSE block is taken if it is present. A conditional │ │ │ │ │ +  _B_u_g_s block mmuusstt be closed with the /IF tag. IF tags can │ │ │ │ │ + be nested. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/img.html │ │ │ │ @@ -114,14 +114,18 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ +<[ref]OUTPUT FILE="outputfilename" [APPEND] [EXPAND]>
│ │ │ │ +text block
│ │ │ │ +<[ref]/OUTPUT>
│ │ │ │ +
│ │ │ │

│ │ │ │

synopsis

│ │ │ │

img is a standard HTML tag. htp can add the specified │ │ │ │ image's width and height to the tag automatically. This has the advantage │ │ │ │ of not having to determine each image's size manually, which is especially │ │ │ │ useful if the image may change frequently.

│ │ │ │

htp adds this information with the WIDTH and HEIGHT markup │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,41 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: IIMMGG ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _L_i_c_e_n_s_e iimmgg is a standard HTML tag. htp can add the │ │ │ │ │ -  _T_u_t_o_r_i_a_l specified image's width and height to the tag │ │ │ │ │ -  _U_s_a_g_e automatically. This has the advantage of not having │ │ │ │ │ -  HTP Tags to determine each image's size manually, which is │ │ │ │ │ -    _A_L_T_T_E_X_T especially useful if the image may change │ │ │ │ │ -    _B_L_O_C_K frequently. │ │ │ │ │ -    _B_L_O_C_K_D_E_F htp adds this information with the WIDTH and HEIGHT │ │ │ │ │ -    _D_E_F markup attributes. If htp detects these attributes │ │ │ │ │ -    _F_I_L_E are already present in the tag, it will nnoott modify │ │ │ │ │ -    _I_F the values. If htp cannot find the image file, it │ │ │ │ │ -    _I_N_C will issue a warning but not halt processing. │ │ │ │ │ -  [>] _I_M_G At this time, GIF (Graphic Interchange Format), PNG │ │ │ │ │ -    _I_M_A_G_E_U_R_L (Portable Network Graphics), and JFIF (JPEG File │ │ │ │ │ -    _O_P_T Interchange Format) are supported. │ │ │ │ │ -    _O_U_T_P_U_T The _I_M_G_X_Y_ _a_n_d_ _N_O_I_M_G_X_Y options control whether or │ │ │ │ │ -    _Q_U_O_T_E not htp actually adds this information as it │ │ │ │ │ -    _S_E_T executes. │ │ │ │ │ -    _U_N_D_E_F Since htp is able to lookup files only in the local │ │ │ │ │ -    _U_N_S_E_T filesystem, the _I_M_A_G_E_U_R_L tag may be used to map │ │ │ │ │ -    _U_S_E_,_ _$ URLs to local files. │ │ │ │ │ -    _W_H_I_L_E htp can also add default ALT text to IMG tags using │ │ │ │ │ -    _<_!_-_-_- _A_L_T_T_E_X_T. │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n <_[_[_r_e_f_]_]_O_U_T_P_U_T FILE="outputfilename" [APPEND] │ │ │ │ │ +  _L_i_c_e_n_s_e [EXPAND]> │ │ │ │ │ +  _T_u_t_o_r_i_a_l text block │ │ │ │ │ +  _U_s_a_g_e <_[_[_r_e_f_]_]_/_O_U_T_P_U_T> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K iimmgg is a standard HTML tag. htp can add the │ │ │ │ │ +    _B_L_O_C_K_D_E_F specified image's width and height to the tag │ │ │ │ │ +    _D_E_F automatically. This has the advantage of not having │ │ │ │ │ +    _F_I_L_E to determine each image's size manually, which is │ │ │ │ │ +    _I_F especially useful if the image may change │ │ │ │ │ +    _I_N_C frequently. │ │ │ │ │ +  [>] _I_M_G htp adds this information with the WIDTH and HEIGHT │ │ │ │ │ +    _I_M_A_G_E_U_R_L markup attributes. If htp detects these attributes │ │ │ │ │ +    _O_P_T are already present in the tag, it will nnoott modify │ │ │ │ │ +    _O_U_T_P_U_T the values. If htp cannot find the image file, it │ │ │ │ │ +    _Q_U_O_T_E will issue a warning but not halt processing. │ │ │ │ │ +    _S_E_T At this time, GIF (Graphic Interchange Format), PNG │ │ │ │ │ +    _U_N_D_E_F (Portable Network Graphics), and JFIF (JPEG File │ │ │ │ │ +    _U_N_S_E_T Interchange Format) are supported. │ │ │ │ │ +    _U_S_E_,_ _$ The _I_M_G_X_Y_ _a_n_d_ _N_O_I_M_G_X_Y options control whether or │ │ │ │ │ +    _W_H_I_L_E not htp actually adds this information as it │ │ │ │ │ +    _<_!_-_-_- executes. │ │ │ │ │ +  _H_i_s_t_o_r_y Since htp is able to lookup files only in the local │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t filesystem, the _I_M_A_G_E_U_R_L tag may be used to map │ │ │ │ │ +  _B_u_g_s URLs to local files. │ │ │ │ │ + htp can also add default ALT text to IMG tags using │ │ │ │ │ + _A_L_T_T_E_X_T. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/inc.html │ │ │ │ @@ -114,24 +114,14 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]def name="centered">
│ │ │ │ -    <p align=center>
│ │ │ │ -    <[ref]/def>
│ │ │ │ -
│ │ │ │ -    <centered>
│ │ │ │ -    This text is centered.
│ │ │ │ -(CONDENSE|SEMICONDENSE|NOCONDENSE)>
│ │ │ │ -<[ref]OPT DELIM=(HTML|SQUARE|CURLY)>
│ │ │ │ -<[ref]OPT (XML|XML=FALSE)>
│ │ │ │ -
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ The INC can be used for incrementing/decrementing a │ │ │ │ variable or for variable addition. The basic form is shown above. │ │ │ │

│ │ │ │ The "increment" is anything that evaluates to a integer. It can be a │ │ │ │ literal string or a macro preceeded by the '$'-operator. The │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,46 +1,36 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: IINNCC ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_d_e_f name="centered"> │ │ │ │ │ -  _L_i_c_e_n_s_e    

│ │ │ │ │ -  _T_u_t_o_r_i_a_l     <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ -  _U_s_a_g_e │ │ │ │ │ -  HTP Tags     │ │ │ │ │ -    _A_L_T_T_E_X_T     This text is centered. │ │ │ │ │ -    _B_L_O_C_K (CONDENSE|SEMICONDENSE|NOCONDENSE)> │ │ │ │ │ -    _B_L_O_C_K_D_E_F <_[_[_r_e_f_]_]_O_P_T DELIM=(HTML|SQUARE|CURLY)> │ │ │ │ │ -    _D_E_F <_[_[_r_e_f_]_]_O_P_T (XML|XML=FALSE)> │ │ │ │ │ -    _F_I_L_E │ │ │ │ │ -    _I_F ********** ssyynnooppssiiss ********** │ │ │ │ │ -  [>] _I_N_C The IINNCC can be used for incrementing/decrementing a │ │ │ │ │ -    _I_M_G variable or for variable addition. The basic form │ │ │ │ │ -    _I_M_A_G_E_U_R_L is shown above. │ │ │ │ │ -    _O_P_T The "increment" is anything that evaluates to a │ │ │ │ │ -    _O_U_T_P_U_T integer. It can be a literal string or a macro │ │ │ │ │ -    _Q_U_O_T_E preceeded by the '$'-operator. The macroname must │ │ │ │ │ -    _S_E_T be the name of a defined macro that contains an │ │ │ │ │ -    _U_N_D_E_F integer. If the increment is ommitted it defaults │ │ │ │ │ -    _U_N_S_E_T to 1. The effect of this operation is that the │ │ │ │ │ -    _U_S_E_,_ _$ macro is redefined to contain the sum of its │ │ │ │ │ -    _W_H_I_L_E previous value and its increment. │ │ │ │ │ -    _<_!_-_-_- To increment or decrement a variable you can use │ │ │ │ │ -  _H_i_s_t_o_r_y this form: │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t Note that INC doesn't check if the strings really │ │ │ │ │ -  _B_u_g_s denote integers. It may give weired results when │ │ │ │ │ - used on arbitrary strings. The integer values are │ │ │ │ │ - limited to the range -2^31..2^31. │ │ │ │ │ - Note further that htp wasn't designed to do │ │ │ │ │ - extensive calculations. The INC tag is useful in │ │ │ │ │ - conjunction with WHILE to iterate over the defined │ │ │ │ │ - blocks. │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ +  _L_i_c_e_n_s_e The IINNCC can be used for incrementing/decrementing a │ │ │ │ │ +  _T_u_t_o_r_i_a_l variable or for variable addition. The basic form │ │ │ │ │ +  _U_s_a_g_e is shown above. │ │ │ │ │ +  HTP Tags The "increment" is anything that evaluates to a │ │ │ │ │ +    _A_L_T_T_E_X_T integer. It can be a literal string or a macro │ │ │ │ │ +    _B_L_O_C_K preceeded by the '$'-operator. The macroname must │ │ │ │ │ +    _B_L_O_C_K_D_E_F be the name of a defined macro that contains an │ │ │ │ │ +    _D_E_F integer. If the increment is ommitted it defaults │ │ │ │ │ +    _F_I_L_E to 1. The effect of this operation is that the │ │ │ │ │ +    _I_F macro is redefined to contain the sum of its │ │ │ │ │ +  [>] _I_N_C previous value and its increment. │ │ │ │ │ +    _I_M_G To increment or decrement a variable you can use │ │ │ │ │ +    _I_M_A_G_E_U_R_L this form: │ │ │ │ │ +    _O_P_T Note that INC doesn't check if the strings really │ │ │ │ │ +    _O_U_T_P_U_T denote integers. It may give weired results when │ │ │ │ │ +    _Q_U_O_T_E used on arbitrary strings. The integer values are │ │ │ │ │ +    _S_E_T limited to the range -2^31..2^31. │ │ │ │ │ +    _U_N_D_E_F Note further that htp wasn't designed to do │ │ │ │ │ +    _U_N_S_E_T extensive calculations. The INC tag is useful in │ │ │ │ │ +    _U_S_E_,_ _$ conjunction with WHILE to iterate over the defined │ │ │ │ │ +    _W_H_I_L_E blocks. │ │ │ │ │ +    _<_!_-_-_- │ │ │ │ │ +  _H_i_s_t_o_r_y │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t │ │ │ │ │ +  _B_u_g_s │ │ │ ├── ./usr/share/doc/htp/metatag.html │ │ │ │ @@ -105,37 +105,56 @@ │ │ │ │ file.

│ │ │ │

Often you want to define tags that have an opening and a closing │ │ │ │ variant. For this purpose you should use the [ref]blockdef tag. When htp │ │ │ │ encounters a blockdef tag it will automatically search for the │ │ │ │ matching closing tag and put everything between these tags in a block │ │ │ │ macro named block. Here is an example for this.

│ │ │ │

│ │ │ │ - 1. <[ref]QUOTE TAG [ATTRIBUTE=VALUE ...]>
│ │ │ │ - 2.
│ │ │ │ - 3. expand]>
│ │ │ │ - 4. <... $macroname ...>
│ │ │ │ - 5. <... ${macroname} ...>
│ │ │ │ - 6.
│ │ │ │

│ │ │ │

Using parameters

│ │ │ │

More sophisticated tags accept parameters. The │ │ │ │ option parameter lets multiple metatag parameters be │ │ │ │ named and expanded inside the def or │ │ │ │ blockdef block:

│ │ │ │

│ │ │ │ - 1.     <[ref]unset email_addr>
│ │ │ │ + 1.   <[ref]DEF NAME="HEADERIMG" OPTION="SRC TITLE SIZE">
│ │ │ │ + 2.     <[ref]IF size>
│ │ │ │ + 3.         <FONT SIZE=${size}>
│ │ │ │ + 4.     <[ref]/IF>
│ │ │ │ + 5.     <[ref]IMG SRC=pics/${src}>
│ │ │ │ + 6.     <[ref]USE title>
│ │ │ │ + 7.     <[ref]IF size>
│ │ │ │ + 8.         </FONT>
│ │ │ │ + 9.     <[ref]/IF>
│ │ │ │ +10.   <[ref]/DEF>
│ │ │ │ +11.
│ │ │ │ +12.   <HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">
│ │ │ │ +13.
│ │ │ │ +14.   <HEADERIMG SRC="logo.gif" TITLE="Normal sized title">
│ │ │ │ +15.
│ │ │ │ +16.   This will fail:
│ │ │ │ +17.   <HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">
│ │ │ │ +18.
│ │ │ │ +19.   Instead, use * like this:
│ │ │ │ +20.   <[ref]DEF NAME="MYIMG" OPTION="SRC *">
│ │ │ │ +21.     <[ref]IMG SRC="pics/${src}" $*>
│ │ │ │ +22.   <[ref]/DEF>
│ │ │ │ +23.    
│ │ │ │ +24.   <MYIMG SRC="logo.gif" ALT="Our logo">
│ │ │ │

│ │ │ │

Saving blocks for later

│ │ │ │

When you are using templates, the html should only be written by │ │ │ │ the template file. The normal htp files should just define macros │ │ │ │ that are used later in the template. So you may want to write block │ │ │ │ tags that just save the block in a macro for later use. Although this │ │ │ │ is possible with htp it is quite tricky, so here we present the way to │ │ │ │ do this:

│ │ │ │

│ │ │ │ + 1. <a href="mailto:$email">mailto hyperlink</a>
│ │ │ │ + 2. <a href="http://$domain/~${username}/">another hyperlink</a>
│ │ │ │

│ │ │ │

This defines a block macro named section. This macro uses a │ │ │ │ counter sect-ctr that enumerates the sections. It is │ │ │ │ increased for every section (line 3) and then the block macro name is │ │ │ │ build from this counter. So the first section is stored in block │ │ │ │ sect-1, the second in sect-2 and so on. The [ref]global flag │ │ │ │ in line 4 tells htp that these macros should be defined globally │ │ │ │ @@ -154,18 +173,15 @@ │ │ │ │ contents of block to be expanded twice. If you omit it, it would be │ │ │ │ expanded when defining the sect-1 macro and when using it later in the │ │ │ │ template. Generally it is a good idea to use noexpand whenever you │ │ │ │ use expand in a block around it.

│ │ │ │

To close this example we show how to expand the │ │ │ │ sect-${sect-ctr} blocks in the template:

│ │ │ │

│ │ │ │ - 1.   <[ref]WHILE NOT i="10">
│ │ │ │ - 2.     ...
│ │ │ │ - 3.     <[ref]INC i>
│ │ │ │ - 4.   <[ref]/WHILE>
│ │ │ │ + 1.     <${tagName} ${attrName}=${value$ctr}>
│ │ │ │

│ │ │ │

│ │ │ │ The [ref]while tag in line 3 checks whether │ │ │ │ the macro sect-${sect-ctr} is defined. If it is defined the body is │ │ │ │ evaluated, which expands the macro and increases sect-ctr. Afterwards │ │ │ │ the while condition is checked again to check for sect-2 macro. This │ │ │ │ repeats until sect-${sect-ctr} is not defined. │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -27,34 +27,58 @@ │ │ │ │ │ Often you want to define tags that have an opening │ │ │ │ │ and a closing variant. For this purpose you should │ │ │ │ │ use the _[_[_r_e_f_]_]_b_l_o_c_k_d_e_f tag. When htp encounters a │ │ │ │ │ blockdef tag it will automatically search for the │ │ │ │ │ matching closing tag and put everything between │ │ │ │ │ these tags in a block macro named block. Here is an │ │ │ │ │ example for this. │ │ │ │ │ -  1. <_[_[_r_e_f_]_]_Q_U_O_T_E TAG [ATTRIBUTE=VALUE ...]> │ │ │ │ │ -  2. │ │ │ │ │ -  3. expand]> │ │ │ │ │ -  4. <... $macroname ...> │ │ │ │ │ -  5. <... ${macroname} ...> │ │ │ │ │ -  6. │ │ │ │ │ ********** UUssiinngg ppaarraammeetteerrss ********** │ │ │ │ │ More sophisticated tags accept parameters. The │ │ │ │ │ option parameter lets multiple metatag parameters │ │ │ │ │ be named and expanded inside the def or blockdef │ │ │ │ │ block: │ │ │ │ │ -  1.     <_[_[_r_e_f_]_]_u_n_s_e_t email_addr> │ │ │ │ │ +  1.   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC │ │ │ │ │ + TITLE SIZE"> │ │ │ │ │ +  2.     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +  3.         │ │ │ │ │ +  4.     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +  5.     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +  6.     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +  7.     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +  8.         │ │ │ │ │ +  9.     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ + 10.   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ + 11. │ │ │ │ │ + 12.   │ │ │ │ │ + 13. │ │ │ │ │ + 14.   │ │ │ │ │ + 15. │ │ │ │ │ + 16.   This will fail: │ │ │ │ │ + 17.   │ │ │ │ │ + 18. │ │ │ │ │ + 19.   Instead, use * like this: │ │ │ │ │ + 20.   <_[_[_r_e_f_]_]_D_E_F NAME="MYIMG" OPTION="SRC *"> │ │ │ │ │ + 21.     <_[_[_r_e_f_]_]_I_M_G SRC="pics/${src}" $*> │ │ │ │ │ + 22.   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ + 23.     │ │ │ │ │ + 24.   │ │ │ │ │ ********** SSaavviinngg bblloocckkss ffoorr llaatteerr ********** │ │ │ │ │ When you are using templates, the html should only │ │ │ │ │ be written by the template file. The normal htp │ │ │ │ │ files should just define macros that are used later │ │ │ │ │ in the template. So you may want to write block │ │ │ │ │ tags that just save the block in a macro for later │ │ │ │ │ use. Although this is possible with htp it is quite │ │ │ │ │ tricky, so here we present the way to do this: │ │ │ │ │ +  1. mailto hyperlink │ │ │ │ │ +  2. another │ │ │ │ │ + hyperlink │ │ │ │ │ This defines a block macro named section. This │ │ │ │ │ macro uses a counter sect-ctr that enumerates the │ │ │ │ │ sections. It is increased for every section (line │ │ │ │ │ 3) and then the block macro name is build from this │ │ │ │ │ counter. So the first section is stored in block │ │ │ │ │ sect-1, the second in sect-2 and so on. The _[ │ │ │ │ │ _[_r_e_f_]_]_g_l_o_b_a_l flag in line 4 tells htp that these │ │ │ │ │ @@ -77,18 +101,15 @@ │ │ │ │ │ block to be expanded twice. If you omit it, it │ │ │ │ │ would be expanded when defining the sect-1 macro │ │ │ │ │ and when using it later in the template. Generally │ │ │ │ │ it is a good idea to use noexpand whenever you use │ │ │ │ │ expand in a block around it. │ │ │ │ │ To close this example we show how to expand the │ │ │ │ │ sect-${sect-ctr} blocks in the template: │ │ │ │ │ -  1.   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ -  2.     ... │ │ │ │ │ -  3.     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ -  4.   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +  1.     <${tagName} ${attrName}=${value$ctr}> │ │ │ │ │ The _[_[_r_e_f_]_]_w_h_i_l_e tag in line 3 checks whether the │ │ │ │ │ macro sect-${sect-ctr} is defined. If it is defined │ │ │ │ │ the body is evaluated, which expands the macro and │ │ │ │ │ increases sect-ctr. Afterwards the while condition │ │ │ │ │ is checked again to check for sect-2 macro. This │ │ │ │ │ repeats until sect-${sect-ctr} is not defined. │ │ │ │ │ ********** CCoonncclluussiioonnss ********** │ │ │ ├── ./usr/share/doc/htp/quote.html │ │ │ │ @@ -114,14 +114,36 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ +  <[ref]imageurl url="http://my.domain.org/" path="/var/www/my.domain/">
│ │ │ │ +  <[ref]imageurl url="other.domain.org/" path="/var/www/other.domain/">
│ │ │ │ +
│ │ │ │ +  For this line: <[ref]img src="logo.gif">
│ │ │ │ +  the local filename "logo.gif" will be used to determine image dimensions
│ │ │ │ +  (no URL replacement).
│ │ │ │ +
│ │ │ │ +  For this line: <[ref]img src="http://my.domain.org/logo.gif">
│ │ │ │ +  the local filename "/var/www/my.domain/logo.gif" will be used.
│ │ │ │ +
│ │ │ │ +  But for this line: <[ref]img src="http://other.domain.org/logo.gif">
│ │ │ │ +  the local file cannot be found (no prefix match), so the image dimensions
│ │ │ │ +  will not be added.
│ │ │ │ +
│ │ │ │ +  Order is important; last IMAGEURL tag takes precedence:
│ │ │ │ +  <[ref]imageurl url="/" path="/var/www/htdocs/">
│ │ │ │ +  <[ref]imageurl url="/test/" path="/var/www/test/">
│ │ │ │ +
│ │ │ │ +  <[ref]img src="/image.gif"> and <[ref]img src="/test/image.gif"> are mapped to
│ │ │ │ +  /var/www/htdocs/image.gif and /var/www/test/image.gif, resp.
│ │ │ │ +  If the order of the imageurl lines would be swapped, the second
│ │ │ │ +  image would be mapped to /var/www/htdocs/test/image.gif.
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ QUOTE is used to quote a macro that would otherwise │ │ │ │ be interpreted by HTP. It may be useful in conjunction with a │ │ │ │ surrounding EXPANDed block to prevent early │ │ │ │ expansion of some contained blocks. Note that '$' evaluation is still │ │ │ │ done inside a quote block. │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,71 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: QQUUOOTTEE ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _L_i_c_e_n_s_e QQUUOOTTEE is used to quote a macro that would otherwise │ │ │ │ │ -  _T_u_t_o_r_i_a_l be interpreted by HTP. It may be useful in │ │ │ │ │ -  _U_s_a_g_e conjunction with a surrounding _E_X_P_A_N_Ded block to │ │ │ │ │ -  HTP Tags prevent early expansion of some contained blocks. │ │ │ │ │ -    _A_L_T_T_E_X_T Note that '$' evaluation is still done inside a │ │ │ │ │ -    _B_L_O_C_K quote block. │ │ │ │ │ -    _B_L_O_C_K_D_E_F │ │ │ │ │ -    _D_E_F │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n   <_[_[_r_e_f_]_]_i_m_a_g_e_u_r_l url="http://my.domain.org/ │ │ │ │ │ +  _L_i_c_e_n_s_e " path="/var/www/my.domain/"> │ │ │ │ │ +  _T_u_t_o_r_i_a_l   <_[_[_r_e_f_]_]_i_m_a_g_e_u_r_l url="other.domain.org/" path="/ │ │ │ │ │ +  _U_s_a_g_e var/www/other.domain/"> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T   For this line: <_[_[_r_e_f_]_]_i_m_g src="logo.gif"> │ │ │ │ │ +    _B_L_O_C_K   the local filename "logo.gif" will be used to │ │ │ │ │ +    _B_L_O_C_K_D_E_F determine image dimensions │ │ │ │ │ +    _D_E_F   (no URL replacement). │ │ │ │ │     _F_I_L_E │ │ │ │ │ -    _I_F │ │ │ │ │ -    _I_N_C │ │ │ │ │ -    _I_M_G │ │ │ │ │ -    _I_M_A_G_E_U_R_L │ │ │ │ │ +    _I_F   For this line: <_[_[_r_e_f_]_]_i_m_g src="http:// │ │ │ │ │ +    _I_N_C my.domain.org/logo.gif"> │ │ │ │ │ +    _I_M_G   the local filename "/var/www/my.domain/logo.gif" │ │ │ │ │ +    _I_M_A_G_E_U_R_L will be used. │ │ │ │ │     _O_P_T │ │ │ │ │ -    _O_U_T_P_U_T │ │ │ │ │ -  [>] _Q_U_O_T_E │ │ │ │ │ -    _S_E_T │ │ │ │ │ -    _U_N_D_E_F │ │ │ │ │ -    _U_N_S_E_T │ │ │ │ │ +    _O_U_T_P_U_T   But for this line: <_[_[_r_e_f_]_]_i_m_g src="http:// │ │ │ │ │ +  [>] _Q_U_O_T_E other.domain.org/logo.gif"> │ │ │ │ │ +    _S_E_T   the local file cannot be found (no prefix match), │ │ │ │ │ +    _U_N_D_E_F so the image dimensions │ │ │ │ │ +    _U_N_S_E_T   will not be added. │ │ │ │ │     _U_S_E_,_ _$ │ │ │ │ │ -    _W_H_I_L_E │ │ │ │ │ -    _<_!_-_-_- │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +    _W_H_I_L_E   Order is important; last IMAGEURL tag takes │ │ │ │ │ +    _<_!_-_-_- precedence: │ │ │ │ │ +  _H_i_s_t_o_r_y   <_[_[_r_e_f_]_]_i_m_a_g_e_u_r_l url="/" path="/var/www/htdocs/"> │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t   <_[_[_r_e_f_]_]_i_m_a_g_e_u_r_l url="/test/" path="/var/www/ │ │ │ │ │ +  _B_u_g_s test/"> │ │ │ │ │ + │ │ │ │ │ +   <_[_[_r_e_f_]_]_i_m_g src="/image.gif"> and <_[_[_r_e_f_]_]_i_m_g │ │ │ │ │ + src="/test/image.gif"> are mapped to │ │ │ │ │ +   /var/www/htdocs/image.gif and /var/www/test/ │ │ │ │ │ + image.gif, resp. │ │ │ │ │ +   If the order of the imageurl lines would be │ │ │ │ │ + swapped, the second │ │ │ │ │ +   image would be mapped to /var/www/htdocs/test/ │ │ │ │ │ + image.gif. │ │ │ │ │ + ********** ssyynnooppssiiss ********** │ │ │ │ │ + QQUUOOTTEE is used to quote a macro that would otherwise │ │ │ │ │ + be interpreted by HTP. It may be useful in │ │ │ │ │ + conjunction with a surrounding _E_X_P_A_N_Ded block to │ │ │ │ │ + prevent early expansion of some contained blocks. │ │ │ │ │ + Note that '$' evaluation is still done inside a │ │ │ │ │ + quote block. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ │ │ │ │ │   _p_a_g_e_ _s_o_u_r_c_e │ │ │ │ │   _h_t_p_ _p_r_o_j_e_c_t │ │ │ │ │   _h_t_p_ _h_o_m_e_p_a_g_e │ │ │ │ │ hosted by │ │ │ │ │ _S_o_u_r_c_e_f_o_r_g_e │ │ │ │ │ HTML coding_[_P_o_w_e_r_e_d_ _b_y │ │ │ ├── ./usr/share/doc/htp/set.html │ │ │ │ @@ -114,20 +114,54 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]IF name>...<[ref]/IF>
│ │ │ │ +  <[ref]WHILE NOT i="10">
│ │ │ │ +    ...
│ │ │ │ +    <[ref]INC i>
│ │ │ │ +  <[ref]/WHILE>
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +  <[ref]def name="/bigfont">
│ │ │ │ +    </font>
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <bigfont>Some large text</bigfont>
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ SET creates a macro definition that can later be expanded │ │ │ │ anywhere in the HTML document. To create a macro: │ │ │ │

│ │ │ │ +  <[ref]DEF NAME="HEADERIMG" OPTION="SRC TITLE SIZE">
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        <FONT SIZE=${size}>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +    <[ref]IMG SRC=pics/${src}>
│ │ │ │ +    <[ref]USE title>
│ │ │ │ +    <[ref]IF size>
│ │ │ │ +        </FONT>
│ │ │ │ +    <[ref]/IF>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">
│ │ │ │ +
│ │ │ │ +  <HEADERIMG SRC="logo.gif" TITLE="Normal sized title">
│ │ │ │ +
│ │ │ │ +  This will fail:
│ │ │ │ +  <HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">
│ │ │ │ +
│ │ │ │ +  Instead, use * like this:
│ │ │ │ +  <[ref]DEF NAME="MYIMG" OPTION="SRC *">
│ │ │ │ +    <[ref]IMG SRC="pics/${src}" $*>
│ │ │ │ +  <[ref]/DEF>
│ │ │ │ +   
│ │ │ │ +  <MYIMG SRC="logo.gif" ALT="Our logo">
│ │ │ │

│ │ │ │

│ │ │ │ The macro "emailaddr" can then be expanded later. The │ │ │ │ USE tag is used to expand the macro outside a tag (i.e., into the regular │ │ │ │ text). If the macro needs to be expanded inside a markup tag, use the │ │ │ │ '$' operator. │ │ │ │

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,74 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: SSEETT ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_I_F name>...<_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ -  _L_i_c_e_n_s_e ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _T_u_t_o_r_i_a_l SSEETT creates a macro definition that can later be │ │ │ │ │ -  _U_s_a_g_e expanded anywhere in the HTML document. To create a │ │ │ │ │ -  HTP Tags macro: │ │ │ │ │ -    _A_L_T_T_E_X_T The macro "emailaddr" can then be expanded later. │ │ │ │ │ -    _B_L_O_C_K The _U_S_E tag is used to expand the macro outside a │ │ │ │ │ -    _B_L_O_C_K_D_E_F tag (i.e., into the regular text). If the macro │ │ │ │ │ -    _D_E_F needs to be expanded inside a markup tag, use the │ │ │ │ │ -    _F_I_L_E _'_$_' operator. │ │ │ │ │ -    _I_F Multiple macros can be declared in a single markup │ │ │ │ │ -    _I_N_C tag, as the second syntax line shows. │ │ │ │ │ -    _I_M_G SET should only be used for a single line's worth │ │ │ │ │ -    _I_M_A_G_E_U_R_L of text. Multi-line macros can be defined with the │ │ │ │ │ -    _O_P_T _B_L_O_C_K tag. The _B_L_O_C_K tag is also useful if the │ │ │ │ │ -    _O_U_T_P_U_T macro contains a quotation character and you don't │ │ │ │ │ -    _Q_U_O_T_E want to fool around with special escape characters. │ │ │ │ │ -  [>] _S_E_T Macros can be redefined by using another SET │ │ │ │ │ -    _U_N_D_E_F command with the same macro name. The prior │ │ │ │ │ -    _U_N_S_E_T definition will be destroyed, however. Also, the │ │ │ │ │ -    _U_S_E_,_ _$ macro can be removed (destroyed) with the _U_N_S_E_T │ │ │ │ │ -    _W_H_I_L_E tag. │ │ │ │ │ -    _<_!_-_-_- │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +  _L_i_c_e_n_s_e     ... │ │ │ │ │ +  _T_u_t_o_r_i_a_l     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +  _U_s_a_g_e   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T │ │ │ │ │ +    _B_L_O_C_K   <_[_[_r_e_f_]_]_d_e_f name="/bigfont"> │ │ │ │ │ +    _B_L_O_C_K_D_E_F     │ │ │ │ │ +    _D_E_F   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _F_I_L_E │ │ │ │ │ +    _I_F   Some large text │ │ │ │ │ +    _I_N_C ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _I_M_G SSEETT creates a macro definition that can later be │ │ │ │ │ +    _I_M_A_G_E_U_R_L expanded anywhere in the HTML document. To create a │ │ │ │ │ +    _O_P_T macro: │ │ │ │ │ +    _O_U_T_P_U_T   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ +    _Q_U_O_T_E SIZE"> │ │ │ │ │ +  [>] _S_E_T     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _U_N_D_E_F         │ │ │ │ │ +    _U_N_S_E_T     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _U_S_E_,_ _$     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +    _W_H_I_L_E     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +    _<_!_-_-_-     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +  _H_i_s_t_o_r_y         │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +  _B_u_g_s   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   This will fail: │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   Instead, use * like this: │ │ │ │ │ +   <_[_[_r_e_f_]_]_D_E_F NAME="MYIMG" OPTION="SRC *"> │ │ │ │ │ +     <_[_[_r_e_f_]_]_I_M_G SRC="pics/${src}" $*> │ │ │ │ │ +   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + The macro "emailaddr" can then be expanded later. │ │ │ │ │ + The _U_S_E tag is used to expand the macro outside a │ │ │ │ │ + tag (i.e., into the regular text). If the macro │ │ │ │ │ + needs to be expanded inside a markup tag, use the │ │ │ │ │ + _'_$_' operator. │ │ │ │ │ + Multiple macros can be declared in a single markup │ │ │ │ │ + tag, as the second syntax line shows. │ │ │ │ │ + SET should only be used for a single line's worth │ │ │ │ │ + of text. Multi-line macros can be defined with the │ │ │ │ │ + _B_L_O_C_K tag. The _B_L_O_C_K tag is also useful if the │ │ │ │ │ + macro contains a quotation character and you don't │ │ │ │ │ + want to fool around with special escape characters. │ │ │ │ │ + Macros can be redefined by using another SET │ │ │ │ │ + command with the same macro name. The prior │ │ │ │ │ + definition will be destroyed, however. Also, the │ │ │ │ │ + macro can be removed (destroyed) with the _U_N_S_E_T │ │ │ │ │ + tag. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/tut/jh.html │ │ │ │ @@ -16,10 +16,10 @@ │ │ │ │ Phone:+49 761 203-8243 │ │ │ │ Fax:+49 761 203-8242 │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │


│ │ │ │ Copyright by Joe Doe.
│ │ │ │ - last updated Sat Mar 08, 2025 │ │ │ │ + last updated Fri Apr 10, 2026 │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,8 +1,8 @@ │ │ │ │ │ ************ JJoocchheenn HHooeenniicckkee ************ │ │ │ │ │ Navigation bar [Photo] │ │ │ │ │ _M_a_i_n RRoooomm:: Bld.52 00-020 │ │ │ │ │ _E_x_a_m_p_l_e PPhhoonnee:: +49 761 203-8243 │ │ │ │ │ FFaaxx:: +49 761 203-8242 │ │ │ │ │ =============================================================================== │ │ │ │ │ Copyright by _J_o_e_ _D_o_e. │ │ │ │ │ -last updated Sat Mar 08, 2025 │ │ │ │ │ +last updated Fri Apr 10, 2026 │ │ │ ├── ./usr/share/doc/htp/tut/tut1.html │ │ │ │ @@ -5,9 +5,9 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ This page was produced by htp. │ │ │ │
│ │ │ │ Copyright by Joe Doe, │ │ │ │ webmaster@domain.com, │ │ │ │ -last updated Sat Mar 08, 2025 │ │ │ │ +last updated Fri Apr 10, 2026 │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,3 +1,3 @@ │ │ │ │ │ This page was produced by htp. │ │ │ │ │ =============================================================================== │ │ │ │ │ -Copyright by Joe Doe, _w_e_b_m_a_s_t_e_r_@_d_o_m_a_i_n_._c_o_m, last updated Sat Mar 08, 2025 │ │ │ │ │ +Copyright by Joe Doe, _w_e_b_m_a_s_t_e_r_@_d_o_m_a_i_n_._c_o_m, last updated Fri Apr 10, 2026 │ │ │ ├── ./usr/share/doc/htp/tut/tut2.html │ │ │ │ @@ -13,10 +13,10 @@ │ │ │ │

│ │ │ │ As you can see the file contains almost only the contents. │ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ │ Copyright by Joe Doe.
│ │ │ │ - last updated Sat Mar 08, 2025 │ │ │ │ + last updated Fri Apr 10, 2026 │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,6 +1,6 @@ │ │ │ │ │ Navigation bar ********** HHeerree iiss tthhee ccoonntteenntt ********** │ │ │ │ │ _M_a_i_n As you can see the file contains almost only the contents. │ │ │ │ │ _E_x_a_m_p_l_e │ │ │ │ │ =============================================================================== │ │ │ │ │ Copyright by _J_o_e_ _D_o_e. │ │ │ │ │ -last updated Sat Mar 08, 2025 │ │ │ │ │ +last updated Fri Apr 10, 2026 │ │ │ ├── ./usr/share/doc/htp/tut/tut3.html │ │ │ │ @@ -13,10 +13,10 @@ │ │ │ │

│ │ │ │ As you can see the file contains almost only the contents. │ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ │ Copyright by Joe Doe.
│ │ │ │ - last updated Sat Mar 08, 2025 │ │ │ │ + last updated Fri Apr 10, 2026 │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,6 +1,6 @@ │ │ │ │ │ Navigation bar ********** HHeerree aarree tthhee ccoonntteennttss ********** │ │ │ │ │ _M_a_i_n As you can see the file contains almost only the contents. │ │ │ │ │ _E_x_a_m_p_l_e │ │ │ │ │ =============================================================================== │ │ │ │ │ Copyright by _J_o_e_ _D_o_e. │ │ │ │ │ -last updated Sat Mar 08, 2025 │ │ │ │ │ +last updated Fri Apr 10, 2026 │ │ │ ├── ./usr/share/doc/htp/undef.html │ │ │ │ @@ -114,15 +114,19 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]SET emailaddr="jnelson@crl.com">
│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │ +ers ...] [noexpand]>
│ │ │ │ +<... $macroname ...>
│ │ │ │ +<... ${macroname} ...>
│ │ │ │ +
│ │ │ │

│ │ │ │

synopsis

│ │ │ │

UNDEF removes a metatag definition. Metatags │ │ │ │ created by DEF and BLOCKDEF can be removed with the UNDEF │ │ │ │ command. Once removed, the metatag will no longer be recognized by │ │ │ │ htp until it is reassigned.

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,22 +1,22 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: UUNNDDEEFF ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_S_E_T emailaddr="jnelson@crl.com"> │ │ │ │ │ -  _L_i_c_e_n_s_e ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _T_u_t_o_r_i_a_l UUNNDDEEFF removes a metatag definition. Metatags │ │ │ │ │ -  _U_s_a_g_e created by _D_E_F and _B_L_O_C_K_D_E_F can be removed with the │ │ │ │ │ -  HTP Tags UNDEF command. Once removed, the metatag will no │ │ │ │ │ -    _A_L_T_T_E_X_T longer be recognized by htp until it is reassigned. │ │ │ │ │ -    _B_L_O_C_K Multiple metatags can be removed by placing each │ │ │ │ │ -    _B_L_O_C_K_D_E_F name as an attribute. │ │ │ │ │ -    _D_E_F │ │ │ │ │ -    _F_I_L_E │ │ │ │ │ -    _I_F │ │ │ │ │ -    _I_N_C │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_I_N_C i="1" j="-1"> │ │ │ │ │ +  _L_i_c_e_n_s_e ers ...] [noexpand]> │ │ │ │ │ +  _T_u_t_o_r_i_a_l <... $macroname ...> │ │ │ │ │ +  _U_s_a_g_e <... ${macroname} ...> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K UUNNDDEEFF removes a metatag definition. Metatags │ │ │ │ │ +    _B_L_O_C_K_D_E_F created by _D_E_F and _B_L_O_C_K_D_E_F can be removed with the │ │ │ │ │ +    _D_E_F UNDEF command. Once removed, the metatag will no │ │ │ │ │ +    _F_I_L_E longer be recognized by htp until it is reassigned. │ │ │ │ │ +    _I_F Multiple metatags can be removed by placing each │ │ │ │ │ +    _I_N_C name as an attribute. │ │ │ │ │     _I_M_G │ │ │ │ │     _I_M_A_G_E_U_R_L │ │ │ │ │     _O_P_T │ │ │ │ │     _O_U_T_P_U_T │ │ │ │ │     _Q_U_O_T_E │ │ │ │ │     _S_E_T │ │ │ │ │   [>] _U_N_D_E_F │ │ │ │ │ @@ -25,14 +25,18 @@ │ │ │ │ │     _W_H_I_L_E │ │ │ │ │     _<_!_-_-_- │ │ │ │ │   _H_i_s_t_o_r_y │ │ │ │ │   _W_i_s_h_ _l_i_s_t │ │ │ │ │   _B_u_g_s │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │   _p_a_g_e_ _s_o_u_r_c_e │ │ │ │ │   _h_t_p_ _p_r_o_j_e_c_t │ │ │ │ │   _h_t_p_ _h_o_m_e_p_a_g_e │ │ │ │ │ hosted by │ │ │ │ │ _S_o_u_r_c_e_f_o_r_g_e │ │ │ │ │ HTML coding_[_P_o_w_e_r_e_d_ _b_y │ │ │ │ │ _h_t_p_] │ │ │ ├── ./usr/share/doc/htp/unset.html │ │ │ │ @@ -114,36 +114,35 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]SET emailaddr="jnelson@crl.com">
│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │ +ers ...] [noexpand]>
│ │ │ │ +<... $macroname ...>
│ │ │ │ +<... ${macroname} ...>
│ │ │ │ +
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ UNSET removes (or deletes) a macro and it's definition. │ │ │ │ The macro is subsequently not available for use in the pre-processed files. │ │ │ │ (Note that simply redefining the macro with another SET or │ │ │ │ BLOCK definition with the same name is acceptable. The │ │ │ │ old macro definition will be removed automatically.) │ │ │ │

│ │ │ │ For example: │ │ │ │

│ │ │ │

│ │ │ │

│ │ │ │ More than one macro may be removed in the same tag: │ │ │ │

│ │ │ │ -<[ref]file include="header.hti">
│ │ │ │ -  <[ref]set sect-ctr="1">
│ │ │ │ -  <[ref]while sect-${sect-ctr}>
│ │ │ │ -    <[ref]use sect-${sect-ctr}>
│ │ │ │ -    <[ref]inc sect-ctr>
│ │ │ │ -  <[ref]/while>
│ │ │ │ -<[ref]file include="footer.hti">
│ │ │ │ +<a href="mailto:$email">mailto hyperlink</a>
│ │ │ │ +<a href="http://$domain/~${username}/">another hyperlink</a>
│ │ │ │

│ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,28 +1,28 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: UUNNSSEETT ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_S_E_T emailaddr="jnelson@crl.com"> │ │ │ │ │ -  _L_i_c_e_n_s_e ********** ssyynnooppssiiss ********** │ │ │ │ │ -  _T_u_t_o_r_i_a_l UUNNSSEETT removes (or deletes) a macro and it's │ │ │ │ │ -  _U_s_a_g_e definition. The macro is subsequently not available │ │ │ │ │ -  HTP Tags for use in the pre-processed files. (Note that │ │ │ │ │ -    _A_L_T_T_E_X_T simply redefining the macro with another _S_E_T or │ │ │ │ │ -    _B_L_O_C_K _B_L_O_C_K definition with the same name is acceptable. │ │ │ │ │ -    _B_L_O_C_K_D_E_F The old macro definition will be removed │ │ │ │ │ -    _D_E_F automatically.) │ │ │ │ │ -    _F_I_L_E For example: │ │ │ │ │ -    _I_F More than one macro may be removed in the same tag: │ │ │ │ │ -    _I_N_C <_[_[_r_e_f_]_]_f_i_l_e include="header.hti"> │ │ │ │ │ -    _I_M_G   <_[_[_r_e_f_]_]_s_e_t sect-ctr="1"> │ │ │ │ │ -    _I_M_A_G_E_U_R_L   <_[_[_r_e_f_]_]_w_h_i_l_e sect-${sect-ctr}> │ │ │ │ │ -    _O_P_T     <_[_[_r_e_f_]_]_u_s_e sect-${sect-ctr}> │ │ │ │ │ -    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -    _Q_U_O_T_E   <_[_[_r_e_f_]_]_/_w_h_i_l_e> │ │ │ │ │ -    _S_E_T <_[_[_r_e_f_]_]_f_i_l_e include="footer.hti"> │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_I_N_C i="1" j="-1"> │ │ │ │ │ +  _L_i_c_e_n_s_e ers ...] [noexpand]> │ │ │ │ │ +  _T_u_t_o_r_i_a_l <... $macroname ...> │ │ │ │ │ +  _U_s_a_g_e <... ${macroname} ...> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K UUNNSSEETT removes (or deletes) a macro and it's │ │ │ │ │ +    _B_L_O_C_K_D_E_F definition. The macro is subsequently not available │ │ │ │ │ +    _D_E_F for use in the pre-processed files. (Note that │ │ │ │ │ +    _F_I_L_E simply redefining the macro with another _S_E_T or │ │ │ │ │ +    _I_F _B_L_O_C_K definition with the same name is acceptable. │ │ │ │ │ +    _I_N_C The old macro definition will be removed │ │ │ │ │ +    _I_M_G automatically.) │ │ │ │ │ +    _I_M_A_G_E_U_R_L For example: │ │ │ │ │ +    _O_P_T More than one macro may be removed in the same tag: │ │ │ │ │ +    _O_U_T_P_U_T mailto hyperlink │ │ │ │ │ +    _Q_U_O_T_E another │ │ │ │ │ +    _S_E_T hyperlink │ │ │ │ │     _U_N_D_E_F │ │ │ │ │   [>] _U_N_S_E_T │ │ │ │ │     _U_S_E_,_ _$ │ │ │ │ │     _W_H_I_L_E │ │ │ │ │     _<_!_-_-_- │ │ │ │ │   _H_i_s_t_o_r_y │ │ │ │ │   _W_i_s_h_ _l_i_s_t │ │ │ ├── ./usr/share/doc/htp/use.html │ │ │ │ @@ -133,14 +133,21 @@ │ │ │ │ attribute to prevent further expansion.

│ │ │ │

USE will accept additional parameters, which are "local" macros │ │ │ │ for the expanded macro. This is only valid for BLOCK macros. Macros created using SET cannot have parameters passed. For │ │ │ │ example:

│ │ │ │

│ │ │ │ + 1.   <[ref]set sect-ctr="0">
│ │ │ │ + 2.   <[ref]blockdef name="section">
│ │ │ │ + 3.     <[ref]inc sect-ctr>
│ │ │ │ + 4.     <[ref]block name="sect-${sect-ctr}" expand global>
│ │ │ │ + 5.       <[ref]use block noexpand>
│ │ │ │ + 6.     <[ref]/block>
│ │ │ │ + 7.   <[ref]/blockdef>
│ │ │ │

│ │ │ │

│ │ │ │ (See below for a description of the '$' operator.) The example on │ │ │ │ line 7 works because "stuff" has been declared as a block macro, and │ │ │ │ the tag is passing the "email" macro to the "stuff" macro. Line 8 │ │ │ │ fails because the "email" macro is unavailable once the block macro is │ │ │ │ completely expanded, and cannot be passed to a SET macro. │ │ │ │ @@ -179,18 +186,15 @@ │ │ │ │ delimiting the text as if it were additional markup attributes. │ │ │ │ If the '$' macro is surrounded by other text (as in the two examples above), │ │ │ │ quotation marks are not automatically supplied. │ │ │ │

│ │ │ │ Note that a '$' macro can be placed anywhere in a markup tag and can │ │ │ │ be nested. This is valid: │ │ │ │

│ │ │ │ -  <[ref]WHILE sect-$i>
│ │ │ │ -    ...
│ │ │ │ -    <[ref]INC i>
│ │ │ │ -  <[ref]/WHILE>
│ │ │ │ +    <${tagName} ${attrName}=${value$ctr}>
│ │ │ │

│ │ │ │

The tagName macro can contain any tag name, even a self-defined │ │ │ │ metatag. Note that $ctr is expanded before the valueX │ │ │ │ macro is expanded, so assuming that ctr was set to 1 it will expand │ │ │ │ value1. │ │ │ │

│ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -15,22 +15,30 @@ │ │ │ │ │     _I_N_C inside a block which _e_x_p_a_n_d_s itself. You can use │ │ │ │ │     _I_M_G the noexpand attribute to prevent further │ │ │ │ │     _I_M_A_G_E_U_R_L expansion. │ │ │ │ │     _O_P_T USE will accept additional parameters, which are │ │ │ │ │     _O_U_T_P_U_T "local" macros for the expanded macro. This is only │ │ │ │ │     _Q_U_O_T_E valid for _B_L_O_C_K macros. Macros created using _S_E_T │ │ │ │ │     _S_E_T cannot have parameters passed. For example: │ │ │ │ │ -    _U_N_D_E_F (See below for a description of the '$' operator.) │ │ │ │ │ -    _U_N_S_E_T The example on line 7 works because "stuff" has │ │ │ │ │ -  [>] _U_S_E_,_ _$ been declared as a block macro, and the tag is │ │ │ │ │ -    _W_H_I_L_E passing the "email" macro to the "stuff" macro. │ │ │ │ │ -    _<_!_-_-_- Line 8 fails because the "email" macro is │ │ │ │ │ -  _H_i_s_t_o_r_y unavailable once the block macro is completely │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t expanded, and cannot be passed to a SET macro. │ │ │ │ │ -  _B_u_g_s Note that the "email" macro is available to other │ │ │ │ │ +    _U_N_D_E_F  1.   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ +    _U_N_S_E_T  2.   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ +  [>] _U_S_E_,_ _$  3.     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ +    _W_H_I_L_E  4.     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" │ │ │ │ │ +    _<_!_-_-_- expand global> │ │ │ │ │ +  _H_i_s_t_o_r_y  5.       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t  6.     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ +  _B_u_g_s  7.   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ + (See below for a description of the '$' operator.) │ │ │ │ │ + The example on line 7 works because "stuff" has │ │ │ │ │ + been declared as a block macro, and the tag is │ │ │ │ │ + passing the "email" macro to the "stuff" macro. │ │ │ │ │ + Line 8 fails because the "email" macro is │ │ │ │ │ + unavailable once the block macro is completely │ │ │ │ │ + expanded, and cannot be passed to a SET macro. │ │ │ │ │ + Note that the "email" macro is available to other │ │ │ │ │ macros or included files called within the "stuff" │ │ │ │ │ block. │ │ │ │ │ Inside a markup tag, like _I_M_G, A (anchor), or any │ │ │ │ │ other standard HTML or htp tag, the '$' operator │ │ │ │ │ must be used. The '$' should be immediately │ │ │ │ │ followed by the macro name, which may or may not be │ │ │ │ │ surrounded by curly braces. When htp encounters │ │ │ │ │ @@ -58,18 +66,15 @@ │ │ │ │ │ it with quotation marks to prevent spaces from │ │ │ │ │ delimiting the text as if it were additional markup │ │ │ │ │ attributes. If the '$' macro is surrounded by other │ │ │ │ │ text (as in the two examples above), quotation │ │ │ │ │ marks are not automatically supplied. │ │ │ │ │ Note that a '$' macro can be placed anywhere in a │ │ │ │ │ markup tag and can be nested. This is valid: │ │ │ │ │ -   <_[_[_r_e_f_]_]_W_H_I_L_E sect-$i> │ │ │ │ │ -     ... │ │ │ │ │ -     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ -   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +     <${tagName} ${attrName}=${value$ctr}> │ │ │ │ │ The tagName macro can contain any tag name, even a │ │ │ │ │ self-defined metatag. Note that $ctr is expanded │ │ │ │ │ before the valueX macro is expanded, so assuming │ │ │ │ │ that ctr was set to 1 it will expand value1. │ │ │ ├── ./usr/share/doc/htp/while.html │ │ │ │ @@ -114,44 +114,41 @@ │ │ │ │ Bugs │ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -<[ref]file include="header.hti">
│ │ │ │ -  <[ref]set sect-ctr="1">
│ │ │ │ -  <[ref]while sect-${sect-ctr}>
│ │ │ │ -    <[ref]use sect-${sect-ctr}>
│ │ │ │ -    <[ref]inc sect-ctr>
│ │ │ │ -  <[ref]/while>
│ │ │ │ -<[ref]file include="footer.hti">
│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │ +ers ...] [noexpand]>
│ │ │ │ +<... $macroname ...>
│ │ │ │ +<... ${macroname} ...>
│ │ │ │ +
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ WHILE is the building block for repeated processing. │ │ │ │ The basic form is shown above. │ │ │ │

│ │ │ │ "Conditional" is either a "compare" or "is defined" operation. │ │ │ │ A compare operator is a test of the value of a macro against a literal string. │ │ │ │ If the NOT tag is present in the WHILE markup, the evaluation of the │ │ │ │ conditional is reversed: │ │ │ │

│ │ │ │ -  <[ref]WHILE NOT i="10">
│ │ │ │ -    ...
│ │ │ │ -    <[ref]INC i>
│ │ │ │ -  <[ref]/WHILE>
│ │ │ │

│ │ │ │

│ │ │ │ Just as with [ref]IF you can also check for a │ │ │ │ macro's existance: │ │ │ │

│ │ │ │ -  <[ref]WHILE sect-$i>
│ │ │ │ -    ...
│ │ │ │ -    <[ref]INC i>
│ │ │ │ -  <[ref]/WHILE>
│ │ │ │ +  <[ref]set sect-ctr="0">
│ │ │ │ +  <[ref]blockdef name="section">
│ │ │ │ +    <[ref]inc sect-ctr>
│ │ │ │ +    <[ref]block name="sect-${sect-ctr}" expand global>
│ │ │ │ +      <[ref]use block noexpand>
│ │ │ │ +    <[ref]/block>
│ │ │ │ +  <[ref]/blockdef>
│ │ │ │

│ │ │ │

│ │ │ │ If the condition is true, the block is evaluated and afterwards the │ │ │ │ WHILE tag is evaluated again. If the '$'-operator is used in the │ │ │ │ WHILE tag it is also reevaluated on each iteration. │ │ │ │

│ │ │ │ A loop block must be closed with the /WHILE tag. │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,38 +1,36 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: WWHHIILLEE ************ │ │ │ │ │ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s ********** ssyynnttaaxx ********** │ │ │ │ │ -  _I_n_t_r_o_d_u_c_t_i_o_n <_[_[_r_e_f_]_]_f_i_l_e include="header.hti"> │ │ │ │ │ -  _L_i_c_e_n_s_e   <_[_[_r_e_f_]_]_s_e_t sect-ctr="1"> │ │ │ │ │ -  _T_u_t_o_r_i_a_l   <_[_[_r_e_f_]_]_w_h_i_l_e sect-${sect-ctr}> │ │ │ │ │ -  _U_s_a_g_e     <_[_[_r_e_f_]_]_u_s_e sect-${sect-ctr}> │ │ │ │ │ -  HTP Tags     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -    _A_L_T_T_E_X_T   <_[_[_r_e_f_]_]_/_w_h_i_l_e> │ │ │ │ │ -    _B_L_O_C_K <_[_[_r_e_f_]_]_f_i_l_e include="footer.hti"> │ │ │ │ │ -    _B_L_O_C_K_D_E_F ********** ssyynnooppssiiss ********** │ │ │ │ │ -    _D_E_F WWHHIILLEE is the building block for repeated │ │ │ │ │ -    _F_I_L_E processing. The basic form is shown above. │ │ │ │ │ -    _I_F "Conditional" is either a "compare" or "is defined" │ │ │ │ │ -    _I_N_C operation. A compare operator is a test of the │ │ │ │ │ -    _I_M_G value of a macro against a literal string. If the │ │ │ │ │ -    _I_M_A_G_E_U_R_L NOT tag is present in the WHILE markup, the │ │ │ │ │ -    _O_P_T evaluation of the conditional is reversed: │ │ │ │ │ -    _O_U_T_P_U_T   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ -    _Q_U_O_T_E     ... │ │ │ │ │ -    _S_E_T     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ -    _U_N_D_E_F   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ -    _U_N_S_E_T Just as with _[_[_r_e_f_]_]_I_F you can also check for a │ │ │ │ │ -    _U_S_E_,_ _$ macro's existance: │ │ │ │ │ -  [>] _W_H_I_L_E   <_[_[_r_e_f_]_]_W_H_I_L_E sect-$i> │ │ │ │ │ -    _<_!_-_-_-     ... │ │ │ │ │ -  _H_i_s_t_o_r_y     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ -  _B_u_g_s If the condition is true, the block is evaluated │ │ │ │ │ - and afterwards the WHILE tag is evaluated again. If │ │ │ │ │ - the '$'-operator is used in the WHILE tag it is │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n     <_[_[_r_e_f_]_]_I_N_C i="1" j="-1"> │ │ │ │ │ +  _L_i_c_e_n_s_e ers ...] [noexpand]> │ │ │ │ │ +  _T_u_t_o_r_i_a_l <... $macroname ...> │ │ │ │ │ +  _U_s_a_g_e <... ${macroname} ...> │ │ │ │ │ +  HTP Tags │ │ │ │ │ +    _A_L_T_T_E_X_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K WWHHIILLEE is the building block for repeated │ │ │ │ │ +    _B_L_O_C_K_D_E_F processing. The basic form is shown above. │ │ │ │ │ +    _D_E_F "Conditional" is either a "compare" or "is defined" │ │ │ │ │ +    _F_I_L_E operation. A compare operator is a test of the │ │ │ │ │ +    _I_F value of a macro against a literal string. If the │ │ │ │ │ +    _I_N_C NOT tag is present in the WHILE markup, the │ │ │ │ │ +    _I_M_G evaluation of the conditional is reversed: │ │ │ │ │ +    _I_M_A_G_E_U_R_L Just as with _[_[_r_e_f_]_]_I_F you can also check for a │ │ │ │ │ +    _O_P_T macro's existance: │ │ │ │ │ +    _O_U_T_P_U_T   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ +    _Q_U_O_T_E   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ +    _S_E_T     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ +    _U_N_D_E_F     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" expand │ │ │ │ │ +    _U_N_S_E_T global> │ │ │ │ │ +    _U_S_E_,_ _$       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ +  [>] _W_H_I_L_E     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ +    _<_!_-_-_-   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ +  _H_i_s_t_o_r_y If the condition is true, the block is evaluated │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t and afterwards the WHILE tag is evaluated again. If │ │ │ │ │ +  _B_u_g_s the '$'-operator is used in the WHILE tag it is │ │ │ │ │ also reevaluated on each iteration. │ │ │ │ │ A loop block mmuusstt be closed with the /WHILE tag.