--- /srv/reproducible-results/rbuild-debian/r-b-build.lHkLbpJL/b1/htp_1.19-8_amd64.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.lHkLbpJL/b2/htp_1.19-8_amd64.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ 195c2a988288fad6660e1cb9e5ada324 71028 debug optional htp-dbgsym_1.19-8_amd64.deb │ - edc628b139291dfca7f63924f5ece7ab 116748 web optional htp_1.19-8_amd64.deb │ + 8444681f796f0021f5bd0cf03775ebd9 116876 web optional htp_1.19-8_amd64.deb ├── htp_1.19-8_amd64.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 3612 2020-06-14 23:21:19.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 112944 2020-06-14 23:21:19.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 3616 2020-06-14 23:21:19.000000 control.tar.xz │ │ +-rw-r--r-- 0 0 0 113068 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: amd64 │ │ │ │ Maintainer: Marcelo Soares Mota │ │ │ │ -Installed-Size: 634 │ │ │ │ +Installed-Size: 644 │ │ │ │ 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 │ │ │ │ @@ -5,23 +5,23 @@ │ │ │ │ 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) 8180 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) 781 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/block.htp │ │ │ │ --rw-r--r-- 0 root (0) root (0) 8445 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/blockdef.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 7941 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) 9299 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/comment.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9410 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) 11027 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/def.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13131 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,64 +32,64 @@ │ │ │ │ -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) 10287 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/expand.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9041 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) 14857 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/file.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13183 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) 9455 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/if.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 11720 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) 12395 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) 9160 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) 9025 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) 15209 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/metatag.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 11820 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) 8132 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 │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/ │ │ │ │ -rw-r--r-- 0 root (0) root (0) 171 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/arrow.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 262 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/download.png │ │ │ │ -rw-r--r-- 0 root (0) root (0) 708 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/pic/htpicon.png │ │ │ │ -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) 7797 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) 9117 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/set.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9145 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) 8442 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/undef.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 8625 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) 10194 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/unset.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13824 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) 14173 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/use.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 17308 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) 10182 2020-06-14 23:21:19.000000 ./usr/share/doc/htp/while.html │ │ │ │ +-rw-r--r-- 0 root (0) root (0) 13253 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/blockdef.html │ │ │ │ @@ -114,16 +114,14 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -<[ref]INC macroname1="increment1" [macroname2="increment2" ... ] [GLOBAL]>
│ │ │ │ -
│ │ │ │

│ │ │ │

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 │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,27 +1,27 @@ │ │ │ │ │ [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 <_[_[_r_e_f_]_]_I_N_C macroname1="increment1" │ │ │ │ │ -  _L_i_c_e_n_s_e [macroname2="increment2" ... ] [GLOBAL]> │ │ │ │ │ -  _T_u_t_o_r_i_a_l │ │ │ │ │ -  _U_s_a_g_e ********** ssyynnooppssiiss ********** │ │ │ │ │ -  HTP Tags BBLLOOCCKKDDEEFF creates block _m_e_t_a_t_a_g_s, which is a fancy │ │ │ │ │ -    _A_L_T_T_E_X_T way of saying it creates new block tags. A block │ │ │ │ │ -    _B_L_O_C_K tag is a tag that takes a whole block as additional │ │ │ │ │ -  [>] _B_L_O_C_K_D_E_F parameter. This block is surrounded by │ │ │ │ │ -    _D_E_F and . The contents of this block are │ │ │ │ │ -    _F_I_L_E automatically stored in the block macro named │ │ │ │ │ -    _I_F BLOCK. │ │ │ │ │ -    _I_N_C For example: │ │ │ │ │ -    _I_M_G All block metatags have the implicit option _E_X_P_A_N_D, │ │ │ │ │ -    _I_M_A_G_E_U_R_L which tells htp to expand the contents of the block │ │ │ │ │ -    _O_P_T before the definition is expanded. │ │ │ │ │ -    _O_U_T_P_U_T A more thorough discussion and more elaborate │ │ │ │ │ -    _Q_U_O_T_E examples are discussed in the _m_e_t_a_t_a_g section. │ │ │ │ │ +  _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 All block metatags have the implicit option _E_X_P_A_N_D, │ │ │ │ │ +    _I_F which tells htp to expand the contents of the block │ │ │ │ │ +    _I_N_C before the definition is expanded. │ │ │ │ │ +    _I_M_G A more thorough discussion and more elaborate │ │ │ │ │ +    _I_M_A_G_E_U_R_L examples are discussed in the _m_e_t_a_t_a_g section. │ │ │ │ │ +    _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 │ │ │ │ │ @@ -30,17 +30,14 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ │ │ │ │ │   _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/comment.html │ │ │ │ @@ -114,39 +114,38 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -  <[ref]alttext name="logo.gif" text="Company logo">
│ │ │ │ -
│ │ │ │ -  this line: <[ref]img src="logo.gif">
│ │ │ │ -  becomes this after processing: <[ref]img src="logo.gif" alt="Company logo">
│ │ │ │ -
│ │ │ │ -  this line: <[ref]img src="../image/logo.gif">
│ │ │ │ -  will also have an ALT attribute appended to it
│ │ │ │ -
│ │ │ │ -  this line: <[ref]img src="logo.gif" alt="Click here for more information!">
│ │ │ │ -  remains unchanged.
│ │ │ │

│ │ │ │

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: │ │ │ │

│ │ │ │

│ │ │ │ +  <[ref]def name="sharedimg" option="name alt">
│ │ │ │ +    <[ref]img src="/home/sharedimages/${name}" alt="${alt}">;
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <sharedimg name="bubble.gif" alt="Bubble image">
│ │ │ │

│ │ │ │

│ │ │ │ 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]WHILE NOT i="10">
│ │ │ │ +    ...
│ │ │ │ +    <[ref]INC i>
│ │ │ │ +  <[ref]/WHILE>
│ │ │ │

│ │ │ │

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,46 +1,43 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: < │ │ │ │ │ -  _T_u_t_o_r_i_a_l │ │ │ │ │ -  _U_s_a_g_e   this line: <_[_[_r_e_f_]_]_i_m_g src="logo.gif"> │ │ │ │ │ -  HTP Tags   becomes this after processing: <_[_[_r_e_f_]_]_i_m_g │ │ │ │ │ -    _A_L_T_T_E_X_T src="logo.gif" alt="Company logo"> │ │ │ │ │ -    _B_L_O_C_K │ │ │ │ │ -    _B_L_O_C_K_D_E_F   this line: <_[_[_r_e_f_]_]_i_m_g src="../image/logo.gif"> │ │ │ │ │ -    _D_E_F   will also have an ALT attribute appended to it │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n ********** ssyynnooppssiiss ********** │ │ │ │ │ +  _L_i_c_e_n_s_e This is a simple comment that is not included in │ │ │ │ │ +  _T_u_t_o_r_i_a_l the output. This is useful when commenting │ │ │ │ │ +  _U_s_a_g_e metatags, since the metatags do not appear the │ │ │ │ │ +  HTP Tags output either. Example: │ │ │ │ │ +    _A_L_T_T_E_X_T   <_[_[_r_e_f_]_]_d_e_f name="sharedimg" option="name alt"> │ │ │ │ │ +    _B_L_O_C_K     <_[_[_r_e_f_]_]_i_m_g src="/home/sharedimages/${name}" │ │ │ │ │ +    _B_L_O_C_K_D_E_F alt="${alt}">; │ │ │ │ │ +    _D_E_F   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │     _F_I_L_E │ │ │ │ │ -    _I_F   this line: <_[_[_r_e_f_]_]_i_m_g src="logo.gif" alt="Click │ │ │ │ │ -    _I_N_C here for more information!"> │ │ │ │ │ -    _I_M_G   remains unchanged. │ │ │ │ │ -    _I_M_A_G_E_U_R_L ********** ssyynnooppssiiss ********** │ │ │ │ │ -    _O_P_T This is a simple comment that is not included in │ │ │ │ │ -    _O_U_T_P_U_T the output. This is useful when commenting │ │ │ │ │ -    _Q_U_O_T_E metatags, since the metatags do not appear the │ │ │ │ │ -    _S_E_T output either. Example: │ │ │ │ │ -    _U_N_D_E_F Note that these comments should not include < or >, │ │ │ │ │ -    _U_N_S_E_T that is you should not use it to comment out htp │ │ │ │ │ -    _U_S_E_,_ _$ code. For that purpose use something like this: │ │ │ │ │ -    _W_H_I_L_E Make sure that the variable is never defined and │ │ │ │ │ -  [>] _<_!_-_-_- xyz should be the reason why you don't want to │ │ │ │ │ -  _H_i_s_t_o_r_y include this block │ │ │ │ │ +    _I_F   │ │ │ │ │ +    _I_N_C Note that these comments should not include < or >, │ │ │ │ │ +    _I_M_G that is you should not use it to comment out htp │ │ │ │ │ +    _I_M_A_G_E_U_R_L code. For that purpose use something like this: │ │ │ │ │ +    _O_P_T   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +    _O_U_T_P_U_T     ... │ │ │ │ │ +    _Q_U_O_T_E     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +    _S_E_T   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +    _U_N_D_E_F Make sure that the variable is never defined and │ │ │ │ │ +    _U_N_S_E_T xyz should be the reason why you don't want to │ │ │ │ │ +    _U_S_E_,_ _$ include this block │ │ │ │ │ +    _W_H_I_L_E │ │ │ │ │ +  [>] _<_!_-_-_- │ │ │ │ │ +  _H_i_s_t_o_r_y │ │ │ │ │   _W_i_s_h_ _l_i_s_t │ │ │ │ │   _B_u_g_s │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ ├── ./usr/share/doc/htp/def.html │ │ │ │ @@ -124,38 +124,47 @@ │ │ │ │ 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="sharedimg" option="name alt">
│ │ │ │ +    <[ref]img src="/home/sharedimages/${name}" alt="${alt}">;
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <sharedimg name="bubble.gif" alt="Bubble image">
│ │ │ │

│ │ │ │

│ │ │ │ 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 │ │ │ │ tag with a preceding slash. For example: │ │ │ │

│ │ │ │

│ │ │ │ -  <[ref]def name="sharedimg" option="name alt">
│ │ │ │ -    <[ref]img src="/home/sharedimages/${name}" alt="${alt}">;
│ │ │ │ -  <[ref]/def>
│ │ │ │ -
│ │ │ │ -  <sharedimg name="bubble.gif" alt="Bubble image">
│ │ │ │ +    <[ref]FILE INCLUDE="include.hti" name="Jim Nelson" email="jnelson@crl.com">
│ │ │ │ +    This tag will fail: <[ref]USE name>
│ │ │ │

│ │ │ │

You should really use BLOCKDEF, though, │ │ │ │ as it will check for matching end tag. It is not that slower.

│ │ │ │

│ │ │ │ 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]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">
│ │ │ │

│ │ │ │

│ │ │ │ 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,35 +3,45 @@ │ │ │ │ │ _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 Some metatags will require an opening and closing │ │ │ │ │ -    _B_L_O_C_K_D_E_F tag (comparable to │ │ │ │ │ -  [>] _D_E_F and │ │ │ │ │ -    _F_I_L_E ). In this case, you should use the _B_L_O_C_K_D_E_F macro. │ │ │ │ │ -    _I_F Another slightly faster alternative is to use two │ │ │ │ │ -    _I_N_C metatags, the opening tag and the closing tag with │ │ │ │ │ -    _I_M_G a preceding slash. For example: │ │ │ │ │ -    _I_M_A_G_E_U_R_L   <_[_[_r_e_f_]_]_d_e_f name="sharedimg" option="name alt"> │ │ │ │ │ -    _O_P_T     <_[_[_r_e_f_]_]_i_m_g src="/home/sharedimages/${name}" │ │ │ │ │ -    _O_U_T_P_U_T alt="${alt}">; │ │ │ │ │ -    _Q_U_O_T_E   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ -    _S_E_T │ │ │ │ │ -    _U_N_D_E_F   │ │ │ │ │ -    _U_N_S_E_T You should really use _B_L_O_C_K_D_E_F, though, as it will │ │ │ │ │ -    _U_S_E_,_ _$ check for matching end tag. It is not that slower. │ │ │ │ │ -    _W_H_I_L_E Options can be passed to a metatag, which can then │ │ │ │ │ -    _<_!_-_-_- expand as if it were a _S_E_T macro. Option names are │ │ │ │ │ -  _H_i_s_t_o_r_y parameterized with the OPTION attribute. Multiple │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t options can be listed by separating their name with │ │ │ │ │ -  _B_u_g_s a space (which therefore requires they be │ │ │ │ │ +    _B_L_O_C_K   <_[_[_r_e_f_]_]_d_e_f name="sharedimg" option="name alt"> │ │ │ │ │ +    _B_L_O_C_K_D_E_F     <_[_[_r_e_f_]_]_i_m_g src="/home/sharedimages/${name}" │ │ │ │ │ +  [>] _D_E_F alt="${alt}">; │ │ │ │ │ +    _F_I_L_E   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _I_F │ │ │ │ │ +    _I_N_C   │ │ │ │ │ +    _I_M_G Some metatags will require an opening and closing │ │ │ │ │ +    _I_M_A_G_E_U_R_L tag (comparable to │ │ │ │ │ +    _O_P_T and │ │ │ │ │ +    _O_U_T_P_U_T ). In this case, you should use the _B_L_O_C_K_D_E_F macro. │ │ │ │ │ +    _Q_U_O_T_E Another slightly faster alternative is to use two │ │ │ │ │ +    _S_E_T metatags, the opening tag and the closing tag with │ │ │ │ │ +    _U_N_D_E_F a preceding slash. For example: │ │ │ │ │ +    _U_N_S_E_T     <_[_[_r_e_f_]_]_F_I_L_E INCLUDE="include.hti" name="Jim │ │ │ │ │ +    _U_S_E_,_ _$ Nelson" email="jnelson@crl.com"> │ │ │ │ │ +    _W_H_I_L_E     This tag will fail: <_[_[_r_e_f_]_]_U_S_E name> │ │ │ │ │ +    _<_!_-_-_- You should really use _B_L_O_C_K_D_E_F, though, as it will │ │ │ │ │ +  _H_i_s_t_o_r_y check for matching end tag. It is not that slower. │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t Options can be passed to a metatag, which can then │ │ │ │ │ +  _B_u_g_s 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_]_]_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"> │ │ │ │ │ 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,30 +98,26 @@ │ │ │ │

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
│ │ │ │ + 1. <[ref]img src="filename" ...>
│ │ │ │ + 2.
│ │ │ │ + 3.  path="path/in/local/filesystem" ]>
│ │ │ │ + 4.
│ │ │ │ + 5. ></EM>
│ │ │ │

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

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

│ │ │ │

│ │ │ │ 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,32 +24,24 @@ │ │ │ │ │ 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 │ │ │ │ │ +  1. <_[_[_r_e_f_]_]_i_m_g src="filename" ...> │ │ │ │ │ +  2. │ │ │ │ │ +  3.  path="path/in/local/filesystem" ]> │ │ │ │ │ +  4. │ │ │ │ │ +  5. > │ │ │ │ │ This produces the following: │ │ │ │ │ +   <_[_[_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> │ │ │ │ │ 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,27 +124,29 @@ │ │ │ │ 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]if disabled_because_xyz>
│ │ │ │ +  ...
│ │ │ │ +<[ref]/if>
│ │ │ │

│ │ │ │

│ │ │ │

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]def name="sharedimg" option="name alt">
│ │ │ │ -    <[ref]img src="/home/sharedimages/${name}" alt="${alt}">;
│ │ │ │ -  <[ref]/def>
│ │ │ │ -
│ │ │ │ -  <sharedimg name="bubble.gif" alt="Bubble image">
│ │ │ │ +  <[ref]WHILE NOT i="10">
│ │ │ │ +    ...
│ │ │ │ +    <[ref]INC i>
│ │ │ │ +  <[ref]/WHILE>
│ │ │ │

│ │ │ │

│ │ │ │ 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 │ │ │ │ @@ -173,21 +175,14 @@ │ │ │ │

│ │ │ │ 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]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>
│ │ │ │

│ │ │ │

│ │ │ │ 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,32 @@ │ │ │ │ │   _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 ******** NNAAMMEE,, TTIIMMEE,, SSIIZZEE ******** │ │ │ │ │ -    _I_F To include information about another file, such as │ │ │ │ │ -    _I_N_C an archive file or graphic image, specify its name │ │ │ │ │ -    _I_M_G with the NAME attribute followed by the type of │ │ │ │ │ -    _I_M_A_G_E_U_R_L information to be displayed: │ │ │ │ │ -    _O_P_T   <_[_[_r_e_f_]_]_d_e_f name="sharedimg" option="name alt"> │ │ │ │ │ -    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_i_m_g src="/home/sharedimages/${name}" │ │ │ │ │ -    _Q_U_O_T_E alt="${alt}">; │ │ │ │ │ -    _S_E_T   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ -    _U_N_D_E_F │ │ │ │ │ -    _U_N_S_E_T   │ │ │ │ │ -    _U_S_E_,_ _$ For file size information, the value BYTE, KBYTE, │ │ │ │ │ -    _W_H_I_L_E etc. dictates how the information is displayed. In │ │ │ │ │ -    _<_!_-_-_- anything other than byte format, the information is │ │ │ │ │ -  _H_i_s_t_o_r_y displayed in floating-point notation. The amount of │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t precision (the number of digits to the right of the │ │ │ │ │ -  _B_u_g_s decimal point) can be set with the optional │ │ │ │ │ +  [>] _F_I_L_E <_[_[_r_e_f_]_]_i_f disabled_because_xyz> │ │ │ │ │ +    _I_F   ... │ │ │ │ │ +    _I_N_C <_[_[_r_e_f_]_]_/_i_f> │ │ │ │ │ +    _I_M_G ******** NNAAMMEE,, TTIIMMEE,, SSIIZZEE ******** │ │ │ │ │ +    _I_M_A_G_E_U_R_L To include information about another file, such as │ │ │ │ │ +    _O_P_T an archive file or graphic image, specify its name │ │ │ │ │ +    _O_U_T_P_U_T with the NAME attribute followed by the type of │ │ │ │ │ +    _Q_U_O_T_E information to be displayed: │ │ │ │ │ +    _S_E_T   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +    _U_N_D_E_F     ... │ │ │ │ │ +    _U_N_S_E_T     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +    _U_S_E_,_ _$   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +    _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 │ │ │ │ │ + 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 │ │ │ │ │ function. This allows for the time and date to be │ │ │ │ │ @@ -55,22 +56,14 @@ │ │ │ │ │ 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_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ -   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ -     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" expand │ │ │ │ │ - global> │ │ │ │ │ -       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ -     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ -   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ 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,23 +122,43 @@ │ │ │ │

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: │ │ │ │

│ │ │ │ -    File image.gif <[ref]FILE NAME="image.gif" SIZE=KBYTE> kilobytes
│ │ │ │ -    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │

│ │ │ │

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

│ │ │ │

│ │ │ │ -    <[ref]FILE INCLUDE="include.hti" name="Jim Nelson" email="jnelson@crl.com">
│ │ │ │ -    This tag will fail: <[ref]USE name>
│ │ │ │ +  <[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">
│ │ │ │

│ │ │ │

│ │ │ │ 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,54 @@ │ │ │ │ │   _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     File image.gif <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -    _D_E_F SIZE=KBYTE> kilobytes │ │ │ │ │ -    _F_I_L_E     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -  [>] _I_F TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ -    _I_N_C and a defined operator is a test of a macro's │ │ │ │ │ -    _I_M_G existance: │ │ │ │ │ -    _I_M_A_G_E_U_R_L     <_[_[_r_e_f_]_]_F_I_L_E INCLUDE="include.hti" name="Jim │ │ │ │ │ -    _O_P_T Nelson" email="jnelson@crl.com"> │ │ │ │ │ -    _O_U_T_P_U_T     This tag will fail: <_[_[_r_e_f_]_]_U_S_E name> │ │ │ │ │ -    _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. │ │ │ │ │ +    _B_L_O_C_K_D_E_F and a defined operator is a test of a macro's │ │ │ │ │ +    _D_E_F existance: │ │ │ │ │ +    _F_I_L_E   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ +  [>] _I_F SIZE"> │ │ │ │ │ +    _I_N_C     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _I_M_G         │ │ │ │ │ +    _I_M_A_G_E_U_R_L     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _O_P_T     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +    _Q_U_O_T_E     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _S_E_T         │ │ │ │ │ +    _U_N_D_E_F     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _U_N_S_E_T   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ +    _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_i_s_h_ _l_i_s_t   │ │ │ │ │ + │ │ │ │ │ +   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> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + 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 mmuusstt be closed with the /IF tag. IF tags can │ │ │ │ │ + be nested. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/imageurl.html │ │ │ │ @@ -135,14 +135,38 @@ │ │ │ │ checks (case-insensitive) if it is a prefix of the image's SRC │ │ │ │ attribute. If it matches this prefix is replaced by the given PATH. │ │ │ │ If no IMAGEURL matches the SRC is considered as relative link and │ │ │ │ looked up in the current directory.

│ │ │ │

│ │ │ │ For example:

│ │ │ │

│ │ │ │ +  <[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">
│ │ │ │

│ │ │ │

│ │ │ │ If IMAGEURL is specified with a URL but no PATH attribute, it is treated as │ │ │ │ an undefine, and is removed.

│ │ │ │

│ │ │ │ Since you usually need the url mapping for a number of images used throughout │ │ │ │ a set of documents, IMAGEURL is most appropriately put into an │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -16,21 +16,49 @@ │ │ │ │ │     _I_M_G defined imageurl it checks (case-insensitive) if it │ │ │ │ │   [>] _I_M_A_G_E_U_R_L is a prefix of the image's SRC attribute. If it │ │ │ │ │     _O_P_T matches this prefix is replaced by the given PATH. │ │ │ │ │     _O_U_T_P_U_T If no IMAGEURL matches the SRC is considered as │ │ │ │ │     _Q_U_O_T_E relative link and looked up in the current │ │ │ │ │     _S_E_T directory. │ │ │ │ │     _U_N_D_E_F For example: │ │ │ │ │ -    _U_N_S_E_T If IMAGEURL is specified with a URL but no PATH │ │ │ │ │ -    _U_S_E_,_ _$ attribute, it is treated as an undefine, and is │ │ │ │ │ -    _W_H_I_L_E removed. │ │ │ │ │ -    _<_!_-_-_- Since you usually need the url mapping for a number │ │ │ │ │ -  _H_i_s_t_o_r_y of images used throughout a set of documents, │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t IMAGEURL is most appropriately put into an _i_n_c_l_u_d_e │ │ │ │ │ -  _B_u_g_s _f_i_l_e or the _h_t_p_._d_e_f file. │ │ │ │ │ +    _U_N_S_E_T   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ +    _U_S_E_,_ _$ SIZE"> │ │ │ │ │ +    _W_H_I_L_E     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _<_!_-_-_-         │ │ │ │ │ +  _H_i_s_t_o_r_y     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +  _B_u_g_s     <_[_[_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> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + If IMAGEURL is specified with a URL but no PATH │ │ │ │ │ + attribute, it is treated as an undefine, and is │ │ │ │ │ + removed. │ │ │ │ │ + Since you usually need the url mapping for a number │ │ │ │ │ + of images used throughout a set of documents, │ │ │ │ │ + IMAGEURL is most appropriately put into an _i_n_c_l_u_d_e │ │ │ │ │ + _f_i_l_e or the _h_t_p_._d_e_f file. │ │ │ │ │ In addition to WIDTH and HEIGHT, htp can also │ │ │ │ │ (semi-)automatically add an _A_L_T_ _t_e_x_t attribute to │ │ │ │ │ _I_M_G tags. │ │ │ ├── ./usr/share/doc/htp/img.html │ │ │ │ @@ -114,14 +114,16 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ +    File image.gif <[ref]FILE NAME="image.gif" SIZE=KBYTE> kilobytes
│ │ │ │ +    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │

│ │ │ │

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,40 @@ │ │ │ │ │ [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     File image.gif <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ +  _L_i_c_e_n_s_e SIZE=KBYTE> kilobytes │ │ │ │ │ +  _T_u_t_o_r_i_a_l     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ +  _U_s_a_g_e TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ +  HTP Tags ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _A_L_T_T_E_X_T iimmgg is a standard HTML tag. htp can add the │ │ │ │ │ +    _B_L_O_C_K specified image's width and height to the tag │ │ │ │ │ +    _B_L_O_C_K_D_E_F automatically. This has the advantage of not having │ │ │ │ │ +    _D_E_F to determine each image's size manually, which is │ │ │ │ │ +    _F_I_L_E especially useful if the image may change │ │ │ │ │ +    _I_F frequently. │ │ │ │ │ +    _I_N_C htp adds this information with the WIDTH and HEIGHT │ │ │ │ │ +  [>] _I_M_G markup attributes. If htp detects these attributes │ │ │ │ │ +    _I_M_A_G_E_U_R_L are already present in the tag, it will nnoott modify │ │ │ │ │ +    _O_P_T the values. If htp cannot find the image file, it │ │ │ │ │ +    _O_U_T_P_U_T will issue a warning but not halt processing. │ │ │ │ │ +    _Q_U_O_T_E At this time, GIF (Graphic Interchange Format), PNG │ │ │ │ │ +    _S_E_T (Portable Network Graphics), and JFIF (JPEG File │ │ │ │ │ +    _U_N_D_E_F Interchange Format) are supported. │ │ │ │ │ +    _U_N_S_E_T The _I_M_G_X_Y_ _a_n_d_ _N_O_I_M_G_X_Y options control whether or │ │ │ │ │ +    _U_S_E_,_ _$ not htp actually adds this information as it │ │ │ │ │ +    _W_H_I_L_E executes. │ │ │ │ │ +    _<_!_-_-_- Since htp is able to lookup files only in the local │ │ │ │ │ +  _H_i_s_t_o_r_y filesystem, the _I_M_A_G_E_U_R_L tag may be used to map │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t URLs to local files. │ │ │ │ │ +  _B_u_g_s htp can also add default ALT text to IMG tags using │ │ │ │ │ + _A_L_T_T_E_X_T. │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/metatag.html │ │ │ │ @@ -105,46 +105,35 @@ │ │ │ │ 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]WHILE NOT i="10">
│ │ │ │ - 2.     ...
│ │ │ │ - 3.     <[ref]INC i>
│ │ │ │ - 4.   <[ref]/WHILE>
│ │ │ │ - 5. k>
│ │ │ │ - 6.
│ │ │ │ - 7. <[ref]set morestuff=$email>
│ │ │ │ - 8.
│ │ │ │ - 9. This works:     <[ref]use stuff email="jnelson@crl.com">
│ │ │ │ -10. But this fails: <[ref]use email>
│ │ │ │ -11. And this fails: <[ref]use morestuff email="jnelson@crl.com">
│ │ │ │ + 1.     <[ref]SET emailaddr="jnelson@crl.com">
│ │ │ │

│ │ │ │

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]WHILE sect-$i>
│ │ │ │ + 1.   <[ref]WHILE NOT i="10">
│ │ │ │  2.     ...
│ │ │ │  3.     <[ref]INC i>
│ │ │ │  4.   <[ref]/WHILE>
│ │ │ │

│ │ │ │

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.     <${tagName} ${attrName}=${value$ctr}>
│ │ │ │

│ │ │ │

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 │ │ │ │ @@ -163,21 +152,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]file include="header.hti">
│ │ │ │ - 2.   <[ref]set sect-ctr="1">
│ │ │ │ - 3.   <[ref]while sect-${sect-ctr}>
│ │ │ │ - 4.     <[ref]use sect-${sect-ctr}>
│ │ │ │ - 5.     <[ref]inc sect-ctr>
│ │ │ │ - 6.   <[ref]/while>
│ │ │ │ - 7. <[ref]file include="footer.hti">
│ │ │ │ + 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,45 +27,32 @@ │ │ │ │ │ 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_]_]_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> │ │ │ │ │ -  5. k> │ │ │ │ │ -  6. │ │ │ │ │ -  7. <_[_[_r_e_f_]_]_s_e_t morestuff=$email> │ │ │ │ │ -  8. │ │ │ │ │ -  9. This works:     <_[_[_r_e_f_]_]_u_s_e stuff │ │ │ │ │ - email="jnelson@crl.com"> │ │ │ │ │ - 10. But this fails: <_[_[_r_e_f_]_]_u_s_e email> │ │ │ │ │ - 11. And this fails: <_[_[_r_e_f_]_]_u_s_e morestuff │ │ │ │ │ - email="jnelson@crl.com"> │ │ │ │ │ +  1.     <_[_[_r_e_f_]_]_S_E_T emailaddr="jnelson@crl.com"> │ │ │ │ │ ********** 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_]_]_W_H_I_L_E sect-$i> │ │ │ │ │ +  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> │ │ │ │ │ ********** 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.     <${tagName} ${attrName}=${value$ctr}> │ │ │ │ │ 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 │ │ │ │ │ @@ -88,21 +75,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_]_]_f_i_l_e include="header.hti"> │ │ │ │ │ -  2.   <_[_[_r_e_f_]_]_s_e_t sect-ctr="1"> │ │ │ │ │ -  3.   <_[_[_r_e_f_]_]_w_h_i_l_e sect-${sect-ctr}> │ │ │ │ │ -  4.     <_[_[_r_e_f_]_]_u_s_e sect-${sect-ctr}> │ │ │ │ │ -  5.     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -  6.   <_[_[_r_e_f_]_]_/_w_h_i_l_e> │ │ │ │ │ -  7. <_[_[_r_e_f_]_]_f_i_l_e include="footer.hti"> │ │ │ │ │ +  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/output.html │ │ │ │ @@ -114,14 +114,19 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ +<[ref]img src="filename" ...>
│ │ │ │ +
│ │ │ │ + path="path/in/local/filesystem" ]>
│ │ │ │ +
│ │ │ │ +></EM>
│ │ │ │

│ │ │ │

synopsis

│ │ │ │

The OUTPUT tag can be used to create auxillary │ │ │ │ files besides the main HTML file. The text between this tag and the │ │ │ │ corresponding </OUTPUT> tag is written to output file.

│ │ │ │

Normally the outputfile is cleared before writing to it, but you │ │ │ │ can use the APPEND attribute to extend an existing file. The text │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,27 +1,27 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: OOUUTTPPUUTT ************ │ │ │ │ │ _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 The OOUUTTPPUUTT tag can be used to create auxillary │ │ │ │ │ -  _T_u_t_o_r_i_a_l files besides the main HTML file. The text between │ │ │ │ │ -  _U_s_a_g_e this tag and the corresponding tag is │ │ │ │ │ -  HTP Tags written to output file. │ │ │ │ │ -    _A_L_T_T_E_X_T Normally the outputfile is cleared before writing │ │ │ │ │ -    _B_L_O_C_K to it, but you can use the APPEND attribute to │ │ │ │ │ -    _B_L_O_C_K_D_E_F extend an existing file. The text written to the │ │ │ │ │ -    _D_E_F file is normally not expanded, i.e. all tags inside │ │ │ │ │ -    _F_I_L_E this block are not executed but written unmodified │ │ │ │ │ -    _I_F to the file. However, you can use the _E_X_P_A_N_D │ │ │ │ │ -    _I_N_C attribute to override this behaviour. │ │ │ │ │ -    _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 │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n <_[_[_r_e_f_]_]_i_m_g src="filename" ...> │ │ │ │ │ +  _L_i_c_e_n_s_e │ │ │ │ │ +  _T_u_t_o_r_i_a_l  path="path/in/local/filesystem" ]> │ │ │ │ │ +  _U_s_a_g_e │ │ │ │ │ +  HTP Tags > │ │ │ │ │ +    _A_L_T_T_E_X_T ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K The OOUUTTPPUUTT tag can be used to create auxillary │ │ │ │ │ +    _B_L_O_C_K_D_E_F files besides the main HTML file. The text between │ │ │ │ │ +    _D_E_F this tag and the corresponding tag is │ │ │ │ │ +    _F_I_L_E written to output file. │ │ │ │ │ +    _I_F Normally the outputfile is cleared before writing │ │ │ │ │ +    _I_N_C to it, but you can use the APPEND attribute to │ │ │ │ │ +    _I_M_G extend an existing file. The text written to the │ │ │ │ │ +    _I_M_A_G_E_U_R_L file is normally not expanded, i.e. all tags inside │ │ │ │ │ +    _O_P_T this block are not executed but written unmodified │ │ │ │ │ +  [>] _O_U_T_P_U_T to the file. However, you can use the _E_X_P_A_N_D │ │ │ │ │ +    _Q_U_O_T_E attribute to override this behaviour. │ │ │ │ │     _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 │ │ │ │ │ @@ -29,14 +29,19 @@ │ │ │ │ │   _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/quote.html │ │ │ │ @@ -114,14 +114,15 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │

│ │ │ │

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,18 +1,18 @@ │ │ │ │ │ [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 │ │ │ │ │ +  _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 ********** ssyynnooppssiiss ********** │ │ │ │ │ +  _T_u_t_o_r_i_a_l QQUUOOTTEE is used to quote a macro that would otherwise │ │ │ │ │ +  _U_s_a_g_e be interpreted by HTP. It may be useful in │ │ │ │ │ +  HTP Tags conjunction with a surrounding _E_X_P_A_N_Ded block to │ │ │ │ │ +    _A_L_T_T_E_X_T prevent early expansion of some contained blocks. │ │ │ │ │ +    _B_L_O_C_K Note that '$' evaluation is still done inside a │ │ │ │ │ +    _B_L_O_C_K_D_E_F quote block. │ │ │ │ │     _D_E_F │ │ │ │ │     _F_I_L_E │ │ │ │ │     _I_F │ │ │ │ │     _I_N_C │ │ │ │ │     _I_M_G │ │ │ │ │     _I_M_A_G_E_U_R_L │ │ │ │ │     _O_P_T │ │ │ │ │ @@ -24,14 +24,15 @@ │ │ │ │ │     _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 │ │ │ │ │ │ │ │ │ │ + │ │ │ │ │   _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/set.html │ │ │ │ @@ -114,21 +114,24 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    File image.gif <[ref]FILE NAME="image.gif" SIZE=KBYTE> kilobytes
│ │ │ │ -    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │ +    <[ref]INC i="1" j="-1">
│ │ │ │

│ │ │ │

synopsis

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

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

│ │ │ │

│ │ │ │ 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,37 @@ │ │ │ │ │ [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     File image.gif <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -  _L_i_c_e_n_s_e SIZE=KBYTE> kilobytes │ │ │ │ │ -  _T_u_t_o_r_i_a_l     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -  _U_s_a_g_e TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ -  HTP Tags ********** ssyynnooppssiiss ********** │ │ │ │ │ -    _A_L_T_T_E_X_T SSEETT creates a macro definition that can later be │ │ │ │ │ -    _B_L_O_C_K expanded anywhere in the HTML document. To create a │ │ │ │ │ -    _B_L_O_C_K_D_E_F macro: │ │ │ │ │ -    _D_E_F The macro "emailaddr" can then be expanded later. │ │ │ │ │ -    _F_I_L_E The _U_S_E tag is used to expand the macro outside a │ │ │ │ │ -    _I_F tag (i.e., into the regular text). If the macro │ │ │ │ │ -    _I_N_C needs to be expanded inside a markup tag, use the │ │ │ │ │ -    _I_M_G _'_$_' operator. │ │ │ │ │ -    _I_M_A_G_E_U_R_L Multiple macros can be declared in a single markup │ │ │ │ │ -    _O_P_T tag, as the second syntax line shows. │ │ │ │ │ -    _O_U_T_P_U_T SET should only be used for a single line's worth │ │ │ │ │ -    _Q_U_O_T_E of text. Multi-line macros can be defined with the │ │ │ │ │ -  [>] _S_E_T _B_L_O_C_K tag. The _B_L_O_C_K tag is also useful if the │ │ │ │ │ -    _U_N_D_E_F macro contains a quotation character and you don't │ │ │ │ │ -    _U_N_S_E_T want to fool around with special escape characters. │ │ │ │ │ -    _U_S_E_,_ _$ Macros can be redefined by using another SET │ │ │ │ │ -    _W_H_I_L_E command with the same macro name. The prior │ │ │ │ │ -    _<_!_-_-_- definition will be destroyed, however. Also, the │ │ │ │ │ -  _H_i_s_t_o_r_y macro can be removed (destroyed) with the _U_N_S_E_T │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t tag. │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _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 ********** 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   <_[_[_r_e_f_]_]_W_H_I_L_E NOT i="10"> │ │ │ │ │ +    _B_L_O_C_K     ... │ │ │ │ │ +    _B_L_O_C_K_D_E_F     <_[_[_r_e_f_]_]_I_N_C i> │ │ │ │ │ +    _D_E_F   <_[_[_r_e_f_]_]_/_W_H_I_L_E> │ │ │ │ │ +    _F_I_L_E The macro "emailaddr" can then be expanded later. │ │ │ │ │ +    _I_F The _U_S_E tag is used to expand the macro outside a │ │ │ │ │ +    _I_N_C tag (i.e., into the regular text). If the macro │ │ │ │ │ +    _I_M_G needs to be expanded inside a markup tag, use the │ │ │ │ │ +    _I_M_A_G_E_U_R_L _'_$_' operator. │ │ │ │ │ +    _O_P_T Multiple macros can be declared in a single markup │ │ │ │ │ +    _O_U_T_P_U_T tag, as the second syntax line shows. │ │ │ │ │ +    _Q_U_O_T_E SET should only be used for a single line's worth │ │ │ │ │ +  [>] _S_E_T of text. Multi-line macros can be defined with the │ │ │ │ │ +    _U_N_D_E_F _B_L_O_C_K tag. The _B_L_O_C_K tag is also useful if the │ │ │ │ │ +    _U_N_S_E_T macro contains a quotation character and you don't │ │ │ │ │ +    _U_S_E_,_ _$ want to fool around with special escape characters. │ │ │ │ │ +    _W_H_I_L_E Macros can be redefined by using another SET │ │ │ │ │ +    _<_!_-_-_- command with the same macro name. The prior │ │ │ │ │ +  _H_i_s_t_o_r_y definition will be destroyed, however. Also, the │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t macro can be removed (destroyed) with the _U_N_S_E_T │ │ │ │ │ +  _B_u_g_s 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 Sun Feb 22, 2026 │ │ │ │ + last updated Mon Jan 20, 2025 │ │ │ │ │ │ │ │ │ │ │ │ ├── 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 Sun Feb 22, 2026 │ │ │ │ │ +last updated Mon Jan 20, 2025 │ │ │ ├── ./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 Sun Feb 22, 2026 │ │ │ │ +last updated Mon Jan 20, 2025 │ │ │ │ │ │ │ │ ├── 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 Sun Feb 22, 2026 │ │ │ │ │ +Copyright by Joe Doe, _w_e_b_m_a_s_t_e_r_@_d_o_m_a_i_n_._c_o_m, last updated Mon Jan 20, 2025 │ │ │ ├── ./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 Sun Feb 22, 2026 │ │ │ │ + last updated Mon Jan 20, 2025 │ │ │ │ │ │ │ │ │ │ │ │ ├── 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 Sun Feb 22, 2026 │ │ │ │ │ +last updated Mon Jan 20, 2025 │ │ │ ├── ./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 Sun Feb 22, 2026 │ │ │ │ + last updated Mon Jan 20, 2025 │ │ │ │ │ │ │ │ │ │ │ │ ├── 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 Sun Feb 22, 2026 │ │ │ │ │ +last updated Mon Jan 20, 2025 │ │ │ ├── ./usr/share/doc/htp/undef.html │ │ │ │ @@ -114,16 +114,23 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    File image.gif <[ref]FILE NAME="image.gif" SIZE=KBYTE> kilobytes
│ │ │ │ -    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │ +  <[ref]def name="bigfont">
│ │ │ │ +    <font size="+4">
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <[ref]def name="/bigfont">
│ │ │ │ +    </font>
│ │ │ │ +  <[ref]/def>
│ │ │ │ +
│ │ │ │ +  <bigfont>Some large text</bigfont>
│ │ │ │

│ │ │ │

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,26 +1,26 @@ │ │ │ │ │ [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     File image.gif <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -  _L_i_c_e_n_s_e SIZE=KBYTE> kilobytes │ │ │ │ │ -  _T_u_t_o_r_i_a_l     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ -  _U_s_a_g_e TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ -  HTP Tags ********** ssyynnooppssiiss ********** │ │ │ │ │ -    _A_L_T_T_E_X_T UUNNDDEEFF removes a metatag definition. Metatags │ │ │ │ │ -    _B_L_O_C_K created by _D_E_F and _B_L_O_C_K_D_E_F can be removed with the │ │ │ │ │ -    _B_L_O_C_K_D_E_F UNDEF command. Once removed, the metatag will no │ │ │ │ │ -    _D_E_F longer be recognized by htp until it is reassigned. │ │ │ │ │ -    _F_I_L_E Multiple metatags can be removed by placing each │ │ │ │ │ -    _I_F name as an attribute. │ │ │ │ │ -    _I_N_C │ │ │ │ │ -    _I_M_G │ │ │ │ │ -    _I_M_A_G_E_U_R_L │ │ │ │ │ -    _O_P_T │ │ │ │ │ -    _O_U_T_P_U_T │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n   <_[_[_r_e_f_]_]_d_e_f name="bigfont"> │ │ │ │ │ +  _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   <_[_[_r_e_f_]_]_d_e_f name="/bigfont"> │ │ │ │ │ +    _A_L_T_T_E_X_T     │ │ │ │ │ +    _B_L_O_C_K   <_[_[_r_e_f_]_]_/_d_e_f> │ │ │ │ │ +    _B_L_O_C_K_D_E_F │ │ │ │ │ +    _D_E_F   Some large text │ │ │ │ │ +    _F_I_L_E ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _I_F UUNNDDEEFF removes a metatag definition. Metatags │ │ │ │ │ +    _I_N_C created by _D_E_F and _B_L_O_C_K_D_E_F can be removed with the │ │ │ │ │ +    _I_M_G UNDEF command. Once removed, the metatag will no │ │ │ │ │ +    _I_M_A_G_E_U_R_L longer be recognized by htp until it is reassigned. │ │ │ │ │ +    _O_P_T Multiple metatags can be removed by placing each │ │ │ │ │ +    _O_U_T_P_U_T name as an attribute. │ │ │ │ │     _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 │ │ │ │ │     _<_!_-_-_- │ │ │ │ │ @@ -28,14 +28,19 @@ │ │ │ │ │   _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,38 +114,61 @@ │ │ │ │ Bugs │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]IF name>...<[ref]/IF>
│ │ │ │ +    File image.gif <[ref]FILE NAME="image.gif" SIZE=KBYTE> kilobytes
│ │ │ │ +    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │

│ │ │ │

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: │ │ │ │

│ │ │ │ -    <[ref]FILE INCLUDE="include.hti" name="Jim Nelson" email="jnelson@crl.com">
│ │ │ │ -    This tag will fail: <[ref]USE name>
│ │ │ │ +  <[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">
│ │ │ │

│ │ │ │

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

│ │ │ │ -  <[ref]set sect-ctr="0">
│ │ │ │ -  <[ref]blockdef name="section">
│ │ │ │ +<[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]block name="sect-${sect-ctr}" expand global>
│ │ │ │ -      <[ref]use block noexpand>
│ │ │ │ -    <[ref]/block>
│ │ │ │ -  <[ref]/blockdef>
│ │ │ │ +  <[ref]/while>
│ │ │ │ +<[ref]file include="footer.hti">
│ │ │ │

│ │ │ │

│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -1,36 +1,63 @@ │ │ │ │ │ [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_]_]_I_F name>...<_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ -  _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     <_[_[_r_e_f_]_]_F_I_L_E INCLUDE="include.hti" name="Jim │ │ │ │ │ -    _I_N_C Nelson" email="jnelson@crl.com"> │ │ │ │ │ -    _I_M_G     This tag will fail: <_[_[_r_e_f_]_]_U_S_E name> │ │ │ │ │ -    _I_M_A_G_E_U_R_L More than one macro may be removed in the same tag: │ │ │ │ │ -    _O_P_T   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ -    _O_U_T_P_U_T   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ -    _Q_U_O_T_E     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -    _S_E_T     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" expand │ │ │ │ │ -    _U_N_D_E_F global> │ │ │ │ │ -  [>] _U_N_S_E_T       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ -    _U_S_E_,_ _$     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ -    _W_H_I_L_E   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ -    _<_!_-_-_- │ │ │ │ │ -  _H_i_s_t_o_r_y │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n     File image.gif <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ +  _L_i_c_e_n_s_e SIZE=KBYTE> kilobytes │ │ │ │ │ +  _T_u_t_o_r_i_a_l     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ +  _U_s_a_g_e TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ +  HTP Tags ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _A_L_T_T_E_X_T UUNNSSEETT removes (or deletes) a macro and it's │ │ │ │ │ +    _B_L_O_C_K definition. The macro is subsequently not available │ │ │ │ │ +    _B_L_O_C_K_D_E_F for use in the pre-processed files. (Note that │ │ │ │ │ +    _D_E_F simply redefining the macro with another _S_E_T or │ │ │ │ │ +    _F_I_L_E _B_L_O_C_K definition with the same name is acceptable. │ │ │ │ │ +    _I_F The old macro definition will be removed │ │ │ │ │ +    _I_N_C automatically.) │ │ │ │ │ +    _I_M_G For example: │ │ │ │ │ +    _I_M_A_G_E_U_R_L   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ +    _O_P_T SIZE"> │ │ │ │ │ +    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _Q_U_O_T_E         │ │ │ │ │ +    _S_E_T     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _U_N_D_E_F     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +  [>] _U_N_S_E_T     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +    _U_S_E_,_ _$     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _W_H_I_L_E         │ │ │ │ │ +    _<_!_-_-_-     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +  _H_i_s_t_o_r_y   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │   _W_i_s_h_ _l_i_s_t │ │ │ │ │ -  _B_u_g_s │ │ │ │ │ +  _B_u_g_s   │ │ │ │ │ + │ │ │ │ │ +   │ │ │ │ │ + │ │ │ │ │ +   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> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + More than one macro may be removed in the same tag: │ │ │ │ │ + <_[_[_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"> │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ ├── ./usr/share/doc/htp/use.html │ │ │ │ @@ -114,15 +114,19 @@ │ │ │ │ Bugs │ │ │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

syntax

│ │ │ │

│ │ │ │ -    <[ref]SET emailaddr="jnelson@crl.com">
│ │ │ │ +<[ref]if disabled_because_xyz>
│ │ │ │ +  ...
│ │ │ │ +<[ref]/if>
│ │ │ │ +if" SIZE=KBYTE> kilobytes
│ │ │ │ +    Last modified <[ref]FILE NAME="image.gif" TIME>, <[ref]FILE NAME="image.gif" DATE>
│ │ │ │

│ │ │ │

synopsis

│ │ │ │ USE will expand macros that have been previously │ │ │ │ declared with either SET or BLOCK. USE can only be used outside of other │ │ │ │ markup tags. │ │ │ │

If you USE a block macro the value of expanded block macros will │ │ │ │ @@ -132,16 +136,38 @@ │ │ │ │ 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]FILE INCLUDE="include.hti" name="Jim Nelson" email="jnelson@crl.com">
│ │ │ │ - 2.     This tag will fail: <[ref]USE name>
│ │ │ │ + 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">
│ │ │ │

│ │ │ │

│ │ │ │ (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. │ │ │ │ @@ -152,21 +178,21 @@ │ │ │ │ Inside a markup tag, like IMG, 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 this it │ │ │ │ replaces the macro name by the contents of the macro without further │ │ │ │ processing the contents. │ │ │ │

│ │ │ │ - 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>
│ │ │ │ + 1. <[ref]file include="header.hti">
│ │ │ │ + 2.   <[ref]set sect-ctr="1">
│ │ │ │ + 3.   <[ref]while sect-${sect-ctr}>
│ │ │ │ + 4.     <[ref]use sect-${sect-ctr}>
│ │ │ │ + 5.     <[ref]inc sect-ctr>
│ │ │ │ + 6.   <[ref]/while>
│ │ │ │ + 7. <[ref]file include="footer.hti">
│ │ │ │

│ │ │ │

│ │ │ │ The use of curly braces is encouraged, since it is more robust and │ │ │ │ should never cause confusion with surrounding text. If no curly │ │ │ │ braces are used the macro name consists either of a single punctuation │ │ │ │ character or the maximum sequence of letters, digits, "-" │ │ │ │ and "_" that follows it. │ │ │ │ @@ -180,21 +206,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]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">
│ │ │ │ +    <${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 {} │ │ │ │ │ @@ -1,53 +1,82 @@ │ │ │ │ │ [HTP] │ │ │ │ │ ************ hhttpp oonn--lliinnee rreeffeerreennccee :: UUSSEE,, $$ ************ │ │ │ │ │ _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 UUSSEE will expand macros that have been previously │ │ │ │ │ -  _U_s_a_g_e declared with either _S_E_T or _B_L_O_C_K. USE can only be │ │ │ │ │ -  HTP Tags used outside of other markup tags. │ │ │ │ │ -    _A_L_T_T_E_X_T If you USE a block macro the value of expanded │ │ │ │ │ -    _B_L_O_C_K block macros will be further parsed by htp. This is │ │ │ │ │ -    _B_L_O_C_K_D_E_F maybe not what you want, for example, if the use is │ │ │ │ │ -    _D_E_F inside a block which _e_x_p_a_n_d_s itself. You can use │ │ │ │ │ -    _F_I_L_E the noexpand attribute to prevent further │ │ │ │ │ -    _I_F expansion. │ │ │ │ │ -    _I_N_C USE will accept additional parameters, which are │ │ │ │ │ -    _I_M_G "local" macros for the expanded macro. This is only │ │ │ │ │ -    _I_M_A_G_E_U_R_L valid for _B_L_O_C_K macros. Macros created using _S_E_T │ │ │ │ │ -    _O_P_T cannot have parameters passed. For example: │ │ │ │ │ -    _O_U_T_P_U_T  1.     <_[_[_r_e_f_]_]_F_I_L_E INCLUDE="include.hti" │ │ │ │ │ -    _Q_U_O_T_E name="Jim Nelson" email="jnelson@crl.com"> │ │ │ │ │ -    _S_E_T  2.     This tag will fail: <_[_[_r_e_f_]_]_U_S_E name> │ │ │ │ │ -    _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 │ │ │ │ │ +  _I_n_t_r_o_d_u_c_t_i_o_n <_[_[_r_e_f_]_]_i_f disabled_because_xyz> │ │ │ │ │ +  _L_i_c_e_n_s_e   ... │ │ │ │ │ +  _T_u_t_o_r_i_a_l <_[_[_r_e_f_]_]_/_i_f> │ │ │ │ │ +  _U_s_a_g_e if" SIZE=KBYTE> kilobytes │ │ │ │ │ +  HTP Tags     Last modified <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" │ │ │ │ │ +    _A_L_T_T_E_X_T TIME>, <_[_[_r_e_f_]_]_F_I_L_E NAME="image.gif" DATE> │ │ │ │ │ +    _B_L_O_C_K ********** ssyynnooppssiiss ********** │ │ │ │ │ +    _B_L_O_C_K_D_E_F UUSSEE will expand macros that have been previously │ │ │ │ │ +    _D_E_F declared with either _S_E_T or _B_L_O_C_K. USE can only be │ │ │ │ │ +    _F_I_L_E used outside of other markup tags. │ │ │ │ │ +    _I_F If you USE a block macro the value of expanded │ │ │ │ │ +    _I_N_C block macros will be further parsed by htp. This is │ │ │ │ │ +    _I_M_G maybe not what you want, for example, if the use is │ │ │ │ │ +    _I_M_A_G_E_U_R_L inside a block which _e_x_p_a_n_d_s itself. You can use │ │ │ │ │ +    _O_P_T the noexpand attribute to prevent further │ │ │ │ │ +    _O_U_T_P_U_T expansion. │ │ │ │ │ +    _Q_U_O_T_E USE will accept additional parameters, which are │ │ │ │ │ +    _S_E_T "local" macros for the expanded macro. This is only │ │ │ │ │ +    _U_N_D_E_F valid for _B_L_O_C_K macros. Macros created using _S_E_T │ │ │ │ │ +    _U_N_S_E_T cannot have parameters passed. For example: │ │ │ │ │ +  [>] _U_S_E_,_ _$  1.   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC │ │ │ │ │ +    _W_H_I_L_E TITLE SIZE"> │ │ │ │ │ +    _<_!_-_-_-  2.     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +  _H_i_s_t_o_r_y  3.         │ │ │ │ │ +  _W_i_s_h_ _l_i_s_t  4.     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +  _B_u_g_s  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.   │ │ │ │ │ + (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 │ │ │ │ │ this it replaces the macro name by the contents of │ │ │ │ │ the macro without further processing the contents. │ │ │ │ │ -  1.   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ -  2.   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ -  3.     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -  4.     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" │ │ │ │ │ - expand global> │ │ │ │ │ -  5.       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ -  6.     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ -  7.   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ +  1. <_[_[_r_e_f_]_]_f_i_l_e include="header.hti"> │ │ │ │ │ +  2.   <_[_[_r_e_f_]_]_s_e_t sect-ctr="1"> │ │ │ │ │ +  3.   <_[_[_r_e_f_]_]_w_h_i_l_e sect-${sect-ctr}> │ │ │ │ │ +  4.     <_[_[_r_e_f_]_]_u_s_e sect-${sect-ctr}> │ │ │ │ │ +  5.     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ +  6.   <_[_[_r_e_f_]_]_/_w_h_i_l_e> │ │ │ │ │ +  7. <_[_[_r_e_f_]_]_f_i_l_e include="footer.hti"> │ │ │ │ │ The use of curly braces is encouraged, since it is │ │ │ │ │ more robust and should never cause confusion with │ │ │ │ │ surrounding text. If no curly braces are used the │ │ │ │ │ macro name consists either of a single punctuation │ │ │ │ │ character or the maximum sequence of letters, │ │ │ │ │ digits, "-" and "_" that follows it. │ │ │ │ │ If a '$' character needs to be kept in the final │ │ │ │ │ @@ -59,21 +88,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_]_]_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"> │ │ │ │ │ +     <${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 │ │ │ │ @@ -124,28 +124,50 @@ │ │ │ │ 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]FILE INCLUDE="include.hti" name="Jim Nelson" email="jnelson@crl.com">
│ │ │ │ -    This tag will fail: <[ref]USE name>
│ │ │ │ +  <[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">
│ │ │ │

│ │ │ │

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

│ │ │ │ -  <[ref]set sect-ctr="0">
│ │ │ │ -  <[ref]blockdef name="section">
│ │ │ │ +<[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]block name="sect-${sect-ctr}" expand global>
│ │ │ │ -      <[ref]use block noexpand>
│ │ │ │ -    <[ref]/block>
│ │ │ │ -  <[ref]/blockdef>
│ │ │ │ +  <[ref]/while>
│ │ │ │ +<[ref]file include="footer.hti">
│ │ │ │

│ │ │ │

│ │ │ │ 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 {} │ │ │ │ │ @@ -5,32 +5,56 @@ │ │ │ │ │   _L_i_c_e_n_s_e WWHHIILLEE is the building block for repeated │ │ │ │ │   _T_u_t_o_r_i_a_l processing. The basic form is shown above. │ │ │ │ │   _U_s_a_g_e "Conditional" is either a "compare" or "is defined" │ │ │ │ │   HTP Tags operation. A compare operator is a test of the │ │ │ │ │     _A_L_T_T_E_X_T value of a macro against a literal string. If the │ │ │ │ │     _B_L_O_C_K NOT tag is present in the WHILE markup, the │ │ │ │ │     _B_L_O_C_K_D_E_F evaluation of the conditional is reversed: │ │ │ │ │ -    _D_E_F     <_[_[_r_e_f_]_]_F_I_L_E INCLUDE="include.hti" name="Jim │ │ │ │ │ -    _F_I_L_E Nelson" email="jnelson@crl.com"> │ │ │ │ │ -    _I_F     This tag will fail: <_[_[_r_e_f_]_]_U_S_E name> │ │ │ │ │ -    _I_N_C Just as with _[_[_r_e_f_]_]_I_F you can also check for a │ │ │ │ │ -    _I_M_G macro's existance: │ │ │ │ │ -    _I_M_A_G_E_U_R_L   <_[_[_r_e_f_]_]_s_e_t sect-ctr="0"> │ │ │ │ │ -    _O_P_T   <_[_[_r_e_f_]_]_b_l_o_c_k_d_e_f name="section"> │ │ │ │ │ -    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_i_n_c sect-ctr> │ │ │ │ │ -    _Q_U_O_T_E     <_[_[_r_e_f_]_]_b_l_o_c_k name="sect-${sect-ctr}" expand │ │ │ │ │ -    _S_E_T global> │ │ │ │ │ -    _U_N_D_E_F       <_[_[_r_e_f_]_]_u_s_e block noexpand> │ │ │ │ │ -    _U_N_S_E_T     <_[_[_r_e_f_]_]_/_b_l_o_c_k> │ │ │ │ │ -    _U_S_E_,_ _$   <_[_[_r_e_f_]_]_/_b_l_o_c_k_d_e_f> │ │ │ │ │ -  [>] _W_H_I_L_E If the condition is true, the block is evaluated │ │ │ │ │ -    _<_!_-_-_- and afterwards the WHILE tag is evaluated again. If │ │ │ │ │ -  _H_i_s_t_o_r_y the '$'-operator is used in the WHILE tag it is │ │ │ │ │ -  _W_i_s_h_ _l_i_s_t also reevaluated on each iteration. │ │ │ │ │ -  _B_u_g_s A loop block mmuusstt be closed with the /WHILE tag. │ │ │ │ │ +    _D_E_F   <_[_[_r_e_f_]_]_D_E_F NAME="HEADERIMG" OPTION="SRC TITLE │ │ │ │ │ +    _F_I_L_E SIZE"> │ │ │ │ │ +    _I_F     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _I_N_C         │ │ │ │ │ +    _I_M_G     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _I_M_A_G_E_U_R_L     <_[_[_r_e_f_]_]_I_M_G SRC=pics/${src}> │ │ │ │ │ +    _O_P_T     <_[_[_r_e_f_]_]_U_S_E title> │ │ │ │ │ +    _O_U_T_P_U_T     <_[_[_r_e_f_]_]_I_F size> │ │ │ │ │ +    _Q_U_O_T_E         │ │ │ │ │ +    _S_E_T     <_[_[_r_e_f_]_]_/_I_F> │ │ │ │ │ +    _U_N_D_E_F   <_[_[_r_e_f_]_]_/_D_E_F> │ │ │ │ │ +    _U_N_S_E_T │ │ │ │ │ +    _U_S_E_,_ _$   │ │ │ │ │ +    _<_!_-_-_- │ │ │ │ │ +  _H_i_s_t_o_r_y   │ │ │ │ │ +  _B_u_g_s │ │ │ │ │ +   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> │ │ │ │ │ +     │ │ │ │ │ +   │ │ │ │ │ + Just as with _[_[_r_e_f_]_]_I_F you can also check for a │ │ │ │ │ + macro's existance: │ │ │ │ │ + <_[_[_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"> │ │ │ │ │ + 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 mmuusstt be closed with the /WHILE tag.