| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | ·e9cbbea7eef6385881e7f1851822049b·71324·debug·optional·htp-dbgsym_1.19-8_amd64.deb | 1 | ·e9cbbea7eef6385881e7f1851822049b·71324·debug·optional·htp-dbgsym_1.19-8_amd64.deb |
| 2 | · | 2 | ·2a1f2d0c508787862a7cd6ab0c543694·116976·web·optional·htp_1.19-8_amd64.deb |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0·····361 | 2 | -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0···11 | 3 | -rw-r--r--···0········0········0···113168·2020-06-14·23:21:19.000000·data.tar.xz |
| Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
| 1 | Package:·htp | 1 | Package:·htp |
| 2 | Version:·1.19-8 | 2 | Version:·1.19-8 |
| 3 | Architecture:·amd64 | 3 | Architecture:·amd64 |
| 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
| 5 | Installed-Size:·62 | 5 | Installed-Size:·628 |
| 6 | Depends:·libc6·(>=·2.38) | 6 | Depends:·libc6·(>=·2.38) |
| 7 | Section:·web | 7 | Section:·web |
| 8 | Priority:·optional | 8 | Priority:·optional |
| 9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
| 10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
| 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
| 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
| Offset 5, 23 lines modified | Offset 5, 23 lines modified | ||
| 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
| 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
| 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
| 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····8180·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····8180·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html |
| 9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp | 9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp |
| 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····7882·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····7882·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
| 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
| 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····8339·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
| 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
| 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
| 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
| 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
| 17 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 17 | -rw-r--r--···0·root·········(0)·root·········(0)·····9389·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html |
| 18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp | 18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp |
| 19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright | 19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright |
| 20 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····11050·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html |
| 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp | 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp |
| 22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html | 22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html |
| 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp | 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp |
| 24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ | 24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ |
| 25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub | 25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub |
| 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti | 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti |
| 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt | 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt |
| Offset 34, 24 lines modified | Offset 34, 24 lines modified | ||
| 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp | 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp |
| 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def |
| 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html |
| 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp |
| 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt |
| 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····7909·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html | 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····7909·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html |
| 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp | 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp |
| 41 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····12621·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html |
| 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz |
| 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html | 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html |
| 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz |
| 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl |
| 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def |
| 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt |
| 48 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 48 | -rw-r--r--···0·root·········(0)·root·········(0)····11640·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
| 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
| 50 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 50 | -rw-r--r--···0·root·········(0)·root·········(0)·····9248·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html |
| 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp | 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp |
| 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8277·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8277·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html |
| 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp | 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp |
| 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····8142·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····8142·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html |
| 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp |
| 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html |
| 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp |
| Offset 60, 36 lines modified | Offset 60, 36 lines modified | ||
| 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html |
| 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp |
| 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html | 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html |
| 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp |
| 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def | 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def |
| 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html |
| 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp |
| 67 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····12065·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html |
| 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz | 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz |
| 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····7558·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html | 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····7558·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html |
| 70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp | 70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp |
| 71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html | 71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html |
| 72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp | 72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp |
| 73 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8227·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html |
| 74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp | 74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp |
| 75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ | 75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ |
| 76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png | 76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png |
| 77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png | 77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png |
| 78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png | 78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png |
| 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png | 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png |
| 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png | 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png |
| 81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png | 81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png |
| 82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png | 82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png |
| 83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png | 83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png |
| 84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png | 84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png |
| 85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl | 85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl |
| 86 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 86 | -rw-r--r--···0·root·········(0)·root·········(0)·····8086·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html |
| 87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp | 87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp |
| 88 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 88 | -rw-r--r--···0·root·········(0)·root·········(0)·····9134·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
| 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
| 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
| 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
| 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
| 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
| 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
| 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
| Offset 104, 21 lines modified | Offset 104, 21 lines modified | ||
| 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp |
| 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt |
| 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt |
| 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html |
| 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp |
| 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····7559·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····7559·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html |
| 110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp | 110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp |
| 111 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 111 | -rw-r--r--···0·root·········(0)·root·········(0)·····9032·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html |
| 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp |
| 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html |
| 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp | 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp |
| 115 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····14948·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html |
| 116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp | 116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp |
| 117 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 117 | -rw-r--r--···0·root·········(0)·root·········(0)·····9688·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
| 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
| 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
| 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
| 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
| 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp |
| 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
| 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
| Offset 114, 38 lines modified | Offset 114, 28 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | <span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 122 | <br> | ||
| 123 | block·#1<br> | ||
| 124 | [<br> | ||
| 125 | <span·class="htp-tag"><ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
| 126 | · ·block·#2<br> | ||
| 127 | ...<br> | ||
| 128 | ]<br> | ||
| 129 | [<br> | ||
| 130 | <span·class="htp-tag"><ELSE></span><br> | ||
| 131 | · ·block·#3<br> | ||
| 132 | ]<br> | ||
| 133 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 134 | <br> | ||
| 135 | </code></p> | 121 | </code></p> |
| 136 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
| 137 | <strong>BLOCKDEF</strong>·creates·block·<A | 123 | <strong>BLOCKDEF</strong>·creates·block·<A |
| 138 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 124 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
| 139 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 125 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
| 140 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 126 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
| 141 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 127 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
| 142 | in·the·block·macro·named·BLOCK. | 128 | in·the·block·macro·named·BLOCK. |
| 143 | <P>·For·example:</P> | 129 | <P>·For·example:</P> |
| 144 | ··<p><code> | 130 | ··<p><code> |
| 131 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
| 132 | · ·block<br> | ||
| 133 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 134 | <br> | ||
| 145 | </code></p> | 135 | </code></p> |
| 146 | <p> | 136 | <p> |
| 147 | All·block·metatags·have·the·implicit·option·<a | 137 | All·block·metatags·have·the·implicit·option·<a |
| 148 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 138 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
| 149 | of·the·block·before·the·definition·is·expanded. | 139 | of·the·block·before·the·definition·is·expanded. |
| 150 | </p> | 140 | </p> |
| 151 | <p> | 141 | <p> |
| Offset 1, 54 lines modified | Offset 1, 44 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** | 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents·········*****·synopsis·***** | ||
| 4 | Contents·········<[[ref]]img·src="filename"·...> | ||
| 5 | ·Introduction | ||
| 6 | ·License········ block·#1 | ||
| 7 | ·Tutorial·······[ | ||
| 8 | ·Usage··········<ELSEIF·[NOT]·conditional> | ||
| 9 | ·HTP·Tags······· · ·block·#2 | ||
| 10 | · ···ALTTEXT····... | ||
| 11 | · ···BLOCK······] | ||
| 12 | ·[>]·BLOCKDEF···[ | ||
| 13 | · ···DEF········<ELSE> | ||
| 14 | · ···FILE······· · ·block·#3 | ||
| 15 | · ···IF·········] | ||
| 16 | · ···INC········<[[ref]]/IF> | ||
| 17 | · ···IMG | ||
| 18 | · ···IMAGEURL···*****·synopsis·***** | ||
| 19 | · | 5 | ·Introduction···BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of |
| 20 | · | 6 | ·License········saying·it·creates·new·block·tags.·A·block·tag·is·a·tag·that |
| 21 | · | 7 | ·Tutorial·······takes·a·whole·block·as·additional·parameter.·This·block·is |
| 22 | · | 8 | ·Usage··········surrounded·by·<tagname>·and·</tagname>.·The·contents·of·this |
| 23 | · | 9 | ·HTP·Tags·······block·are·automatically·stored·in·the·block·macro·named·BLOCK. |
| 24 | · ··· | 10 | · ···ALTTEXT····For·example: |
| 11 | · ···BLOCK······<[[ref]]WHILE·[NOT]·conditional> | ||
| 12 | ·[>]·BLOCKDEF··· · ·block | ||
| 13 | · ···DEF········<[[ref]]/WHILE> | ||
| 14 | · ···FILE | ||
| 25 | · ··· | 15 | · ···IF·········All·block·metatags·have·the·implicit·option·EXPAND,·which |
| 26 | · ··· | 16 | · ···INC········tells·htp·to·expand·the·contents·of·the·block·before·the |
| 27 | · ··· | 17 | · ···IMG········definition·is·expanded. |
| 28 | · | 18 | · ···IMAGEURL···A·more·thorough·discussion·and·more·elaborate·examples·are |
| 29 | · | 19 | · ···OPT········discussed·in·the·metatag·section. |
| 20 | · ···OUTPUT | ||
| 21 | · ···QUOTE | ||
| 22 | · ···SET | ||
| 23 | · ···UNDEF | ||
| 24 | · ···UNSET | ||
| 25 | · ···USE,_$ | ||
| 26 | · ···WHILE | ||
| 27 | · ···<!--- | ||
| 28 | ·History | ||
| 29 | ·Wish_list | ||
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |
| 34 | hosted·by | 34 | hosted·by |
| Offset 114, 14 lines modified | Offset 114, 21 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | · ·a·is·expanded·at·time·1.<br> | ||
| 122 | · ·b·is·expanded·at·time·0.<br> | ||
| 123 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
| 124 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
| 125 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
| 126 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
| 127 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
| 121 | </code></p> | 128 | </code></p> |
| 122 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
| 123 | <p> | 130 | <p> |
| 124 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 131 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
| 125 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 132 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
| 126 | Example: | 133 | Example: |
| 127 | </p> | 134 | </p> |
| Offset 129, 14 lines modified | Offset 136, 22 lines modified | ||
| 129 | </code></p> | 136 | </code></p> |
| 130 | <p> | 137 | <p> |
| 131 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 138 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
| 132 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 139 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
| 133 | like·this: | 140 | like·this: |
| 134 | </p> | 141 | </p> |
| 135 | ··<p><code> | 142 | ··<p><code> |
| 143 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
| 144 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 145 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 146 | <br> | ||
| 147 | <br> | ||
| 148 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
| 149 | <br> | ||
| 150 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
| 136 | </code></p> | 151 | </code></p> |
| 137 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 152 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
| 138 | reason·why·you·don't·want·to·include·this·block</p> | 153 | reason·why·you·don't·want·to·include·this·block</p> |
| 139 | <p> | 154 | <p> |
| 140 | </td> | 155 | </td> |
| 141 | </tr> | 156 | </tr> |
| 142 | <tr> | 157 | <tr> |
| Offset 1, 40 lines modified | Offset 1, 56 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents········· | 4 | Contents········· · ·a·is·expanded·at·time·1. |
| 5 | ·Introduction··· · ·b·is·expanded·at·time·0. | ||
| 6 | ·License········ ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
| 7 | ·Tutorial······· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
| 8 | ·Usage·········· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
| 9 | ·HTP·Tags······· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
| 10 | · ···ALTTEXT···· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·< | ||
| 11 | · ···BLOCK······[[ref]]use·time>. | ||
| 12 | · ···BLOCKDEF···*****·synopsis·***** | ||
| 5 | · | 13 | · ···DEF········This·is·a·simple·comment·that·is·not·included·in·the·output. |
| 6 | · | 14 | · ···FILE·······This·is·useful·when·commenting·metatags,·since·the·metatags·do |
| 7 | · | 15 | · ···IF·········not·appear·the·output·either.·Example: |
| 8 | · | 16 | · ···INC········Note·that·these·comments·should·not·include·<·or·>,·that·is |
| 9 | · | 17 | · ···IMG········you·should·not·use·it·to·comment·out·htp·code.·For·that |
| 10 | · ··· | 18 | · ···IMAGEURL···purpose·use·something·like·this: |
| 19 | · ···OPT········<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
| 20 | · ···OUTPUT·····<...·$macroname·...> | ||
| 21 | · ···QUOTE······<...·${macroname}·...> | ||
| 11 | · ···BLOCK······Make·sure·that·the·variable·is·never·defined·and·xyz·should·be | ||
| 12 | · ···BLOCKDEF···the·reason·why·you·don't·want·to·include·this·block | ||
| 13 | · ···DEF | ||
| 14 | · ···FILE | ||
| 15 | · ···IF | ||
| 16 | · ···INC | ||
| 17 | · ···IMG | ||
| 18 | · ···IMAGEURL | ||
| 19 | · ···OPT | ||
| 20 | · ···OUTPUT | ||
| 21 | · ···QUOTE | ||
| 22 | · ···SET | 22 | · ···SET |
| 23 | · ···UNDEF | 23 | · ···UNDEF |
| 24 | · ···UNSET | 24 | · ···UNSET······ ·<[[ref]]/def> |
| 25 | · ···USE,_$ | 25 | · ···USE,_$ |
| 26 | · ···WHILE | ||
| 27 | ·[>]·<!--- | ||
| 28 | ·Hi | 26 | · ···WHILE······ ·<bigfont>Some·large·text</bigfont> |
| 27 | ·[>]·<!---······Make·sure·that·the·variable·is·never·defined·and·xyz·should·be | ||
| 28 | ·History········the·reason·why·you·don't·want·to·include·this·block | ||
| 29 | ·Wish_list | 29 | ·Wish_list |
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |
| 34 | hosted·by | 34 | hosted·by |
| 35 | Sourceforge | 35 | Sourceforge |
| 36 | HTML·coding | 36 | HTML·coding |
| 37 | [Powered_by_htp] | 37 | [Powered_by_htp] |
| Offset 124, 14 lines modified | Offset 124, 18 lines modified | ||
| 124 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 124 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
| 125 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 125 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
| 126 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 126 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
| 127 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 127 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
| 128 | For·example: | 128 | For·example: |
| 129 | </p> | 129 | </p> |
| 130 | ··<p><code> | 130 | ··<p><code> |
| 131 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
| 132 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 133 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 134 | <br> | ||
| 131 | </code></p> | 135 | </code></p> |
| 132 | <P> | 136 | <P> |
| 133 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 137 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
| 134 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 138 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
| 135 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 139 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
| 136 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 140 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
| 137 | tag·with·a·preceding·slash.·For·example: | 141 | tag·with·a·preceding·slash.·For·example: |
| Offset 143, 14 lines modified | Offset 147, 16 lines modified | ||
| 143 | <P> | 147 | <P> |
| 144 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 148 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
| 145 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 149 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
| 146 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 150 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
| 147 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 151 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
| 148 | </P> | 152 | </P> |
| 149 | ··<p><code> | 153 | ··<p><code> |
| 154 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 155 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 150 | </code></p> | 156 | </code></p> |
| 151 | <P> | 157 | <P> |
| 152 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 158 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
| 153 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 159 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
| 154 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 160 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
| 155 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 161 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
| 156 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 162 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
| Offset 2, 36 lines modified | Offset 2, 42 lines modified | ||
| 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents·········*****·synopsis·***** | 4 | Contents·········*****·synopsis·***** |
| 5 | ·Introduction···DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it | 5 | ·Introduction···DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it |
| 6 | ·License········creates·new·tags.·The·mechanism·is·very·similar·to·BLOCK | 6 | ·License········creates·new·tags.·The·mechanism·is·very·similar·to·BLOCK |
| 7 | ·Tutorial·······macros,·except·that·the·USE·tag·is·not·used·to·expand·them. | 7 | ·Tutorial·······macros,·except·that·the·USE·tag·is·not·used·to·expand·them. |
| 8 | ·Usage··········Instead,·they·are·expanded·by·their·own·name.·For·example: | 8 | ·Usage··········Instead,·they·are·expanded·by·their·own·name.·For·example: |
| 9 | ·HTP·Tags·······<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
| 10 | · ···ALTTEXT····<...·$macroname·...> | ||
| 11 | · ···BLOCK······<...·${macroname}·...> | ||
| 12 | · ···BLOCKDEF | ||
| 9 | · | 13 | ·[>]·DEF········Some·metatags·will·require·an·opening·and·closing·tag |
| 10 | · ··· | 14 | · ···FILE·······(comparable·to |
| 11 | · ··· | 15 | · ···IF·········and |
| 12 | · ··· | 16 | · ···INC········).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another |
| 13 | · | 17 | · ···IMG········slightly·faster·alternative·is·to·use·two·metatags,·the |
| 14 | · ··· | 18 | · ···IMAGEURL···opening·tag·and·the·closing·tag·with·a·preceding·slash.·For |
| 15 | · ··· | 19 | · ···OPT········example: |
| 16 | · ··· | 20 | · ···OUTPUT·····You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for |
| 17 | · ··· | 21 | · ···QUOTE······matching·end·tag.·It·is·not·that·slower. |
| 18 | · ··· | 22 | · ···SET········Options·can·be·passed·to·a·metatag,·which·can·then·expand·as |
| 19 | · ··· | 23 | · ···UNDEF······if·it·were·a·SET·macro.·Option·names·are·parameterized·with |
| 20 | · ··· | 24 | · ···UNSET······the·OPTION·attribute.·Multiple·options·can·be·listed·by |
| 21 | · ··· | 25 | · ···USE,_$·····separating·their·name·with·a·space·(which·therefore·requires |
| 22 | · ··· | 26 | · ···WHILE······they·be·surrounded·by·quotes.) |
| 27 | · ···<!---······<a·href="mailto:$email">mailto·hyperlink</a> | ||
| 28 | ·History········<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
| 23 | · | 29 | ·Wish_list······htp·will·do·very·specific·checking·of·parameters·when·a |
| 24 | · | 30 | ·Bugs···········metatag·is·invoked.·htp·assumes·that·all·parameter·options·to |
| 25 | 31 | ·················the·metatag·are·optional.·This·is·why·the·HEADERIMG·definition | |
| 26 | 32 | ·················uses·IF·to·verify·the·SIZE·option·is·defined·before·expanding | |
| 27 | 33 | ·················it·in·the·block.·If·a·parameter·is·required,·simply·expand·it | |
| 28 | 34 | ·················without·first·checking.·When·htp·expands·the·metatag·and·the | |
| 29 | 35 | ·················macro·is·not·defined,·it·will·halt·processing·and·complain | |
| 30 | 36 | ·················with·an·error·message·and·the·required·macro·name.·Normally | |
| 31 | ·················htp·will·not·allow·parameters·not·listed·in·the·OPTION | 37 | ·················htp·will·not·allow·parameters·not·listed·in·the·OPTION |
| 32 | ·················attribute·to·be·added·to·the·tag.·This·is·why·the·third | 38 | ·················attribute·to·be·added·to·the·tag.·This·is·why·the·third |
| 33 | ·················invocation·of·HEADERIMG·will·fail.·There·is·no·ALT·parameter | 39 | ·················invocation·of·HEADERIMG·will·fail.·There·is·no·ALT·parameter |
| 34 | ·················specified·in·the·OPTION·attribute.·However,·there·is·the | 40 | ·················specified·in·the·OPTION·attribute.·However,·there·is·the |
| 35 | ·················special·option·*,·which·matches·every·other·parameter.·It | 41 | ·················special·option·*,·which·matches·every·other·parameter.·It |
| 36 | ·················should·be·used·to·pass·all·other·options·to·another·tag. | 42 | ·················should·be·used·to·pass·all·other·options·to·another·tag. |
| 37 | ·················Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both | 43 | ·················Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both |
| Offset 124, 14 lines modified | Offset 124, 18 lines modified | ||
| 124 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 124 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
| 125 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 125 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
| 126 | added·to·the·output·file·as·well. | 126 | added·to·the·output·file·as·well. |
| 127 | <P> | 127 | <P> |
| 128 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 128 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
| 129 | following·is·perfectly·acceptable: | 129 | following·is·perfectly·acceptable: |
| 130 | ··<p><code> | 130 | ··<p><code> |
| 131 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
| 132 | · ·block<br> | ||
| 133 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 134 | <br> | ||
| 131 | </code></p> | 135 | </code></p> |
| 132 | <P> | 136 | <P> |
| 133 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 137 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
| 134 | <P> | 138 | <P> |
| 135 | To·include·information·about·another·file,·such·as·an·archive·file·or | 139 | To·include·information·about·another·file,·such·as·an·archive·file·or |
| 136 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 140 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
| 137 | type·of·information·to·be·displayed: | 141 | type·of·information·to·be·displayed: |
| Offset 4, 34 lines modified | Offset 4, 38 lines modified | ||
| 4 | Contents·········*****·synopsis·***** | 4 | Contents·········*****·synopsis·***** |
| 5 | ·Introduction···FILE·has·several·optional·parameters·of·differing·purpose.·The | 5 | ·Introduction···FILE·has·several·optional·parameters·of·differing·purpose.·The |
| 6 | ·License········output·file's·name,·the·current·date·and·time,·and·the | 6 | ·License········output·file's·name,·the·current·date·and·time,·and·the |
| 7 | ·Tutorial·······contents·of·another·file·may·be·included.·Another·file's·time, | 7 | ·Tutorial·······contents·of·another·file·may·be·included.·Another·file's·time, |
| 8 | ·Usage··········date,·or·size·may·be·added·to·the·output·file·as·well. | 8 | ·Usage··········date,·or·size·may·be·added·to·the·output·file·as·well. |
| 9 | ·HTP·Tags·······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own | 9 | ·HTP·Tags·······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own |
| 10 | · ···ALTTEXT····line,·so·the·following·is·perfectly·acceptable: | 10 | · ···ALTTEXT····line,·so·the·following·is·perfectly·acceptable: |
| 11 | · ···BLOCK······<[[ref]]WHILE·[NOT]·conditional> | ||
| 12 | · ···BLOCKDEF··· · ·block | ||
| 13 | · ···DEF········<[[ref]]/WHILE> | ||
| 14 | ·[>]·FILE | ||
| 11 | · ··· | 15 | · ···IF·········****·NAME,·TIME,·SIZE·**** |
| 12 | · ··· | 16 | · ···INC········To·include·information·about·another·file,·such·as·an·archive |
| 13 | · ··· | 17 | · ···IMG········file·or·graphic·image,·specify·its·name·with·the·NAME |
| 14 | · | 18 | · ···IMAGEURL···attribute·followed·by·the·type·of·information·to·be·displayed: |
| 15 | · ··· | 19 | · ···OPT········For·file·size·information,·the·value·BYTE,·KBYTE,·etc. |
| 16 | · ··· | 20 | · ···OUTPUT·····dictates·how·the·information·is·displayed.·In·anything·other |
| 17 | · ··· | 21 | · ···QUOTE······than·byte·format,·the·information·is·displayed·in·floating- |
| 18 | · ··· | 22 | · ···SET········point·notation.·The·amount·of·precision·(the·number·of·digits |
| 19 | · ··· | 23 | · ···UNDEF······to·the·right·of·the·decimal·point)·can·be·set·with·the |
| 20 | · ··· | 24 | · ···UNSET······optional·PRECISION·attribute.·The·default·precision·is·zero |
| 21 | · ··· | 25 | · ···USE,_$·····(0),·which·means·no·fractional·portion·is·displayed. |
| 22 | · ··· | 26 | · ···WHILE······At·the·request·of·many·people,·the·TIME·and·DATE·attributes |
| 23 | · ··· | 27 | · ···<!---······will·now·accept·formatting·characters·that·are·passed·directly |
| 24 | · | 28 | ·History········into·the·ANSI·C·library·function.·This·allows·for·the·time·and |
| 25 | · | 29 | ·Wish_list······date·to·be·displayed·in·virtually·any·format.·Users·not |
| 26 | · | 30 | ·Bugs···········wishing·to·mess·around·with·this·should·stick·to·the·default |
| 27 | 31 | ·················format,·which·is·used·if·no·formatting·value·is·specified | |
| 28 | 32 | ·················(i.e.,·just·using·05:04:11·PM). | |
| 29 | 33 | ·················Consult·any·C·programmer's·guide·discussing·the·standard·C | |
| 30 | 34 | ·················library·function·strftime()·for·information·on·how·to·build·a | |
| 31 | ·················format·string.·If·unsure,·ask·an·experienced·C·programmer·for | 35 | ·················format·string.·If·unsure,·ask·an·experienced·C·programmer·for |
| 32 | ·················help,·or·consider·just·sticking·to·the·default·formatting. | 36 | ·················help,·or·consider·just·sticking·to·the·default·formatting. |
| 33 | ·················****·INCLUDE·**** | 37 | ·················****·INCLUDE·**** |
| 34 | ·················INCLUDE·files·are·pre-processed·as·any·other·file.·The | 38 | ·················INCLUDE·files·are·pre-processed·as·any·other·file.·The |
| 35 | ·················resulting·text·is·incorporated·into·the·HTML·output·as·if·the | 39 | ·················resulting·text·is·incorporated·into·the·HTML·output·as·if·the |
| 36 | ·················file·had·been·copied·into·the·source·at·the·same·location·as | 40 | ·················file·had·been·copied·into·the·source·at·the·same·location·as |
| 37 | ·················the·FILE·markup·tag. | 41 | ·················the·FILE·markup·tag. |
| Offset 127, 14 lines modified | Offset 127, 39 lines modified | ||
| 127 | string: | 127 | string: |
| 128 | ··<p><code> | 128 | ··<p><code> |
| 129 | </code></p> | 129 | </code></p> |
| 130 | <P> | 130 | <P> |
| 131 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 131 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
| 132 | <P> | 132 | <P> |
| 133 | ··<p><code> | 133 | ··<p><code> |
| 134 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> | ||
| 135 | OPTION="SRC·TITLE·SIZE"><br> | ||
| 136 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
| 137 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
| 138 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 139 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
| 140 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
| 141 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
| 142 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
| 143 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 144 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 145 | <br> | ||
| 146 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
| 147 | <br> | ||
| 148 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
| 149 | <br> | ||
| 150 | ·This·will·fail:<br> | ||
| 151 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
| 152 | <br> | ||
| 153 | ·Instead,·use·*·like·this:<br> | ||
| 154 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
| 155 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
| 156 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 157 | · ·<br> | ||
| 158 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
| 134 | </code></p> | 159 | </code></p> |
| 135 | <P> | 160 | <P> |
| 136 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 161 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
| 137 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 162 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
| 138 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 163 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
| 139 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 164 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
| 140 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 165 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
| Offset 4, 34 lines modified | Offset 4, 60 lines modified | ||
| 4 | Contents·········*****·synopsis·***** | 4 | Contents·········*****·synopsis·***** |
| 5 | ·Introduction···IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for | 5 | ·Introduction···IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for |
| 6 | ·License········conditional·processing.·The·basic·form·is·shown·above. | 6 | ·License········conditional·processing.·The·basic·form·is·shown·above. |
| 7 | ·Tutorial·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 7 | ·Tutorial·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
| 8 | ·Usage··········A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a | 8 | ·Usage··········A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a |
| 9 | ·HTP·Tags·······literal·string: | 9 | ·HTP·Tags·······literal·string: |
| 10 | · ···ALTTEXT····and·a·defined·operator·is·a·test·of·a·macro's·existance: | 10 | · ···ALTTEXT····and·a·defined·operator·is·a·test·of·a·macro's·existance: |
| 11 | · ···BLOCK······If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of | ||
| 12 | · ···BLOCKDEF···the·conditional·is·reversed.·The·first·IF·or·ELSEIF·condition | ||
| 13 | · ···DEF········that·evaluates·to·true·is·chosen.·If·none·of·the·conditions·is | ||
| 14 | · ···FILE·······true·the·ELSE·block·is·taken·if·it·is·present.·A·conditional | ||
| 15 | ·[>]·IF·········block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be·nested. | ||
| 16 | · ···INC | ||
| 17 | · ···IMG | ||
| 18 | · ···IMAGEURL | ||
| 19 | · ···OPT | ||
| 20 | · ···OUTPUT | ||
| 21 | · ··· | 11 | · ···BLOCK······ · ·<[[ref]]unset·email_addr> |
| 12 | · ···BLOCKDEF··· OPTION="SRC·TITLE·SIZE"> | ||
| 13 | · ···DEF········ · ·<[[ref]]IF·size> | ||
| 14 | · ···FILE······· · · · ·<FONT·SIZE=${size}> | ||
| 15 | ·[>]·IF········· · ·<[[ref]]/IF> | ||
| 16 | · ···INC········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
| 17 | · ···IMG········ · ·<[[ref]]USE·title> | ||
| 18 | · ···IMAGEURL··· · ·<[[ref]]IF·size> | ||
| 19 | · ···OPT········ · · · ·</FONT> | ||
| 20 | · ···OUTPUT····· · ·<[[ref]]/IF> | ||
| 21 | · ···QUOTE······ ·<[[ref]]/DEF> | ||
| 22 | · ···SET | 22 | · ···SET |
| 23 | · ···UNDEF | 23 | · ···UNDEF······ ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> |
| 24 | · ···UNSET | 24 | · ···UNSET |
| 25 | · ···USE,_$ | 25 | · ···USE,_$····· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
| 26 | · ···WHILE | 26 | · ···WHILE |
| 27 | · ···<!--- | ||
| 28 | ·History | ||
| 29 | · | 27 | · ···<!---······ ·This·will·fail: |
| 28 | ·History········ ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another | ||
| 29 | ·Wish_list······title"> | ||
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ················· ·Instead,·use·*·like·this: | ||
| 32 | ················· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
| 33 | ················· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
| 34 | ················· ·<[[ref]]/DEF> | ||
| 35 | ················· · | ||
| 36 | ················· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
| 37 | ·················If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of | ||
| 38 | ·················the·conditional·is·reversed.·The·first·IF·or·ELSEIF·condition | ||
| 39 | ·················that·evaluates·to·true·is·chosen.·If·none·of·the·conditions·is | ||
| 40 | ·················true·the·ELSE·block·is·taken·if·it·is·present.·A·conditional | ||
| 41 | ·················block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be·nested. | ||
| 31 | ··page_source | 42 | ··page_source |
| Offset 135, 14 lines modified | Offset 135, 18 lines modified | ||
| 135 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 135 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
| 136 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 136 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
| 137 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 137 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
| 138 | looked·up·in·the·current·directory.</P> | 138 | looked·up·in·the·current·directory.</P> |
| 139 | <P> | 139 | <P> |
| 140 | For·example:</P> | 140 | For·example:</P> |
| 141 | ··<p><code> | 141 | ··<p><code> |
| 142 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
| 143 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 144 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 145 | <br> | ||
| 142 | </code></p> | 146 | </code></p> |
| 143 | <P> | 147 | <P> |
| 144 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 148 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
| 145 | an·undefine,·and·is·removed.</P> | 149 | an·undefine,·and·is·removed.</P> |
| 146 | <P> | 150 | <P> |
| 147 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 151 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
| 148 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 152 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
| Offset 13, 25 lines modified | Offset 13, 29 lines modified | ||
| 13 | · ···DEF········account·(later·definitions·take·precedence·to·earlier):·For | 13 | · ···DEF········account·(later·definitions·take·precedence·to·earlier):·For |
| 14 | · ···FILE·······each·defined·imageurl·it·checks·(case-insensitive)·if·it·is·a | 14 | · ···FILE·······each·defined·imageurl·it·checks·(case-insensitive)·if·it·is·a |
| 15 | · ···IF·········prefix·of·the·image's·SRC·attribute.·If·it·matches·this·prefix | 15 | · ···IF·········prefix·of·the·image's·SRC·attribute.·If·it·matches·this·prefix |
| 16 | · ···INC········is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC | 16 | · ···INC········is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC |
| 17 | · ···IMG········is·considered·as·relative·link·and·looked·up·in·the·current | 17 | · ···IMG········is·considered·as·relative·link·and·looked·up·in·the·current |
| 18 | ·[>]·IMAGEURL···directory. | 18 | ·[>]·IMAGEURL···directory. |
| 19 | · ···OPT········For·example: | 19 | · ···OPT········For·example: |
| 20 | · ···OUTPUT·····<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
| 21 | · ···QUOTE······<...·$macroname·...> | ||
| 22 | · ···SET········<...·${macroname}·...> | ||
| 23 | · ···UNDEF | ||
| 20 | · ··· | 24 | · ···UNSET······If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it |
| 21 | · ··· | 25 | · ···USE,_$·····is·treated·as·an·undefine,·and·is·removed. |
| 22 | · ··· | 26 | · ···WHILE······Since·you·usually·need·the·url·mapping·for·a·number·of·images |
| 23 | · ··· | 27 | · ···<!---······used·throughout·a·set·of·documents,·IMAGEURL·is·most |
| 24 | · | 28 | ·History········appropriately·put·into·an·include_file·or·the·htp.def·file. |
| 25 | · | 29 | ·Wish_list······In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi- |
| 26 | · | 30 | ·Bugs···········)automatically·add·an·ALT_text·attribute·to·IMG·tags. |
| 27 | · ···<!--- | ||
| 28 | ·History | ||
| 29 | ·Wish_list | ||
| 30 | ·Bugs | ||
| Offset 88, 14 lines modified | Offset 88, 16 lines modified | ||
| 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and | 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and |
| 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> | 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> |
| 90 | <P> | 90 | <P> |
| 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a | 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a |
| 92 | fancy·horizontal·rule·out·of·several·images. | 92 | fancy·horizontal·rule·out·of·several·images. |
| 93 | </P> | 93 | </P> |
| 94 | ··<p><code> | 94 | ··<p><code> |
| 95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
| 96 | <font·size="-2"> 2.·</font><br> | ||
| 95 | </code></p> | 97 | </code></p> |
| 96 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 98 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
| 97 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 99 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
| 98 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 100 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
| 99 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 101 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
| 100 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 102 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
| 101 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 103 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
| Offset 112, 25 lines modified | Offset 114, 26 lines modified | ||
| 112 | </code></p> | 114 | </code></p> |
| 113 | <h2>Using·parameters</h2> | 115 | <h2>Using·parameters</h2> |
| 114 | <p>·More·sophisticated·tags·accept·parameters.··The | 116 | <p>·More·sophisticated·tags·accept·parameters.··The |
| 115 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 117 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
| 116 | named·and·expanded·inside·the·<code>def</code>·or | 118 | named·and·expanded·inside·the·<code>def</code>·or |
| 117 | <code>blockdef</code>·block:·</p> | 119 | <code>blockdef</code>·block:·</p> |
| 118 | ··<p><code> | 120 | ··<p><code> |
| 121 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | ||
| 122 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
| 123 | <font·size="-2"> 3.·</font><br> | ||
| 119 | </code></p> | 124 | </code></p> |
| 120 | <h2>Saving·blocks·for·later</h2> | 125 | <h2>Saving·blocks·for·later</h2> |
| 121 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 126 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
| 122 | the·template·file.··The·normal·htp·files·should·just·define·macros | 127 | the·template·file.··The·normal·htp·files·should·just·define·macros |
| 123 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 128 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
| 124 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 129 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
| 125 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 130 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
| 126 | do·this:</p> | 131 | do·this:</p> |
| 127 | ··<p><code> | 132 | ··<p><code> |
| 128 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 129 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 130 | </code></p> | 133 | </code></p> |
| 131 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 134 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
| 132 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 135 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
| 133 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 136 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
| 134 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 137 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
| 135 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag | 138 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag |
| 136 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 139 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
| Offset 149, 15 lines modified | Offset 152, 16 lines modified | ||
| 149 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 152 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
| 150 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 153 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
| 151 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 154 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
| 152 | use·expand·in·a·block·around·it.</p> | 155 | use·expand·in·a·block·around·it.</p> |
| 153 | <p>To·close·this·example·we·show·how·to·expand·the | 156 | <p>To·close·this·example·we·show·how·to·expand·the |
| 154 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 157 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
| 155 | ··<p><code> | 158 | ··<p><code> |
| 156 | <font·size="-2"> 1.·</font> | 159 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> |
| 160 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 157 | </code></p> | 161 | </code></p> |
| 158 | <p> | 162 | <p> |
| 159 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether | 163 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether |
| 160 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 164 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
| 161 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 165 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
| 162 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 166 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
| 163 | repeats·until·sect-${sect-ctr}·is·not·defined. | 167 | repeats·until·sect-${sect-ctr}·is·not·defined. |
| Offset 6, 43 lines modified | Offset 6, 46 lines modified | ||
| 6 | ·License········abbreviates.·In·fact·metatags·are·just·like·block·macros,·but | 6 | ·License········abbreviates.·In·fact·metatags·are·just·like·block·macros,·but |
| 7 | ·Tutorial·······they·have·a·nicer·syntax.·With·metatags·you·can·expand·htp's | 7 | ·Tutorial·······they·have·a·nicer·syntax.·With·metatags·you·can·expand·htp's |
| 8 | · ···Macros·····functionality. | 8 | · ···Macros·····functionality. |
| 9 | · ···Including··Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef | 9 | · ···Including··Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef |
| 10 | · ···Templates··tags·and·undefined·with·the·[[ref]]undef·tag. | 10 | · ···Templates··tags·and·undefined·with·the·[[ref]]undef·tag. |
| 11 | · ···Files······As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy | 11 | · ···Files······As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy |
| 12 | ·[>]·Metatags···horizontal·rule·out·of·several·images. | 12 | ·[>]·Metatags···horizontal·rule·out·of·several·images. |
| 13 | ·Usage·········· 1.·<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ | ||
| 14 | ·HTP_Tags·······filesystem"·]> | ||
| 15 | ·History········ 2. | ||
| 13 | · | 16 | ·Wish_list······In·line·1·of·the·above·example·a·new·tag·named·imghr·is |
| 14 | · | 17 | ·Bugs···········defined.·The·html·code·which·implements·this·rule·is·following |
| 15 | 18 | ·················in·lines·2-8.·between·the·[[ref]]def_and_/def·tags.·You·don't | |
| 16 | 19 | ·················have·to·understand·this·html·code,·but·you·should·understand | |
| 17 | 20 | ·················that·this·is·just·pure·html·to·draw·the·fancy·rule.·Every·time | |
| 18 | ·················you·write·<imghr>·as·in·line·12·htp·will·replace·this·tag·with | 21 | ·················you·write·<imghr>·as·in·line·12·htp·will·replace·this·tag·with |
| 19 | ·················the·corresponding·html·code.·To·make·metatags·available·to·all | 22 | ·················the·corresponding·html·code.·To·make·metatags·available·to·all |
| 20 | ·················htp·documents·in·your·project,·place·them·in·a·common·[ | 23 | ·················htp·documents·in·your·project,·place·them·in·a·common·[ |
| 21 | ·················[ref]]include_file. | 24 | ·················[ref]]include_file. |
| 22 | ·················Often·you·want·to·define·tags·that·have·an·opening·and·a | 25 | ·················Often·you·want·to·define·tags·that·have·an·opening·and·a |
| 23 | ·················closing·variant.·For·this·purpose·you·should·use·the·[ | 26 | ·················closing·variant.·For·this·purpose·you·should·use·the·[ |
| 24 | ·················[ref]]blockdef·tag.·When·htp·encounters·a·blockdef·tag·it·will | 27 | ·················[ref]]blockdef·tag.·When·htp·encounters·a·blockdef·tag·it·will |
| 25 | ·················automatically·search·for·the·matching·closing·tag·and·put | 28 | ·················automatically·search·for·the·matching·closing·tag·and·put |
| 26 | ·················everything·between·these·tags·in·a·block·macro·named·block. | 29 | ·················everything·between·these·tags·in·a·block·macro·named·block. |
| 27 | ·················Here·is·an·example·for·this. | 30 | ·················Here·is·an·example·for·this. |
| 28 | ·················*****·Using·parameters·***** | 31 | ·················*****·Using·parameters·***** |
| 29 | ·················More·sophisticated·tags·accept·parameters.·The·option | 32 | ·················More·sophisticated·tags·accept·parameters.·The·option |
| 30 | ·················parameter·lets·multiple·metatag·parameters·be·named·and | 33 | ·················parameter·lets·multiple·metatag·parameters·be·named·and |
| 31 | ·················expanded·inside·the·def·or·blockdef·block: | 34 | ·················expanded·inside·the·def·or·blockdef·block: |
| 35 | ················· 1.·<[[ref]]UNDEF·tagname> | ||
| 36 | ················· 2.·<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
| 37 | ················· 3. | ||
| 32 | ·················*****·Saving·blocks·for·later·***** | 38 | ·················*****·Saving·blocks·for·later·***** |
| 33 | ·················When·you·are·using·templates,·the·html·should·only·be·written | 39 | ·················When·you·are·using·templates,·the·html·should·only·be·written |
| 34 | ·················by·the·template·file.·The·normal·htp·files·should·just·define | 40 | ·················by·the·template·file.·The·normal·htp·files·should·just·define |
| 35 | ·················macros·that·are·used·later·in·the·template.·So·you·may·want·to | 41 | ·················macros·that·are·used·later·in·the·template.·So·you·may·want·to |
| 36 | ·················write·block·tags·that·just·save·the·block·in·a·macro·for·later | 42 | ·················write·block·tags·that·just·save·the·block·in·a·macro·for·later |
| 37 | ·················use.·Although·this·is·possible·with·htp·it·is·quite·tricky,·so | 43 | ·················use.·Although·this·is·possible·with·htp·it·is·quite·tricky,·so |
| 38 | ·················here·we·present·the·way·to·do·this: | 44 | ·················here·we·present·the·way·to·do·this: |
| 39 | ················· 1.·<a·href="mailto:$email">mailto·hyperlink</a> | ||
| 40 | ················· 2.·<a·href="http://$domain/~${username}/">another·hyperlink</ | ||
| 41 | ·················a> | ||
| 42 | ·················This·defines·a·block·macro·named·section.·This·macro·uses·a | 45 | ·················This·defines·a·block·macro·named·section.·This·macro·uses·a |
| 43 | ·················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased | 46 | ·················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased |
| 44 | ·················for·every·section·(line·3)·and·then·the·block·macro·name·is | 47 | ·················for·every·section·(line·3)·and·then·the·block·macro·name·is |
| 45 | ·················build·from·this·counter.·So·the·first·section·is·stored·in | 48 | ·················build·from·this·counter.·So·the·first·section·is·stored·in |
| 46 | ·················block·sect-1,·the·second·in·sect-2·and·so·on.·The·[ | 49 | ·················block·sect-1,·the·second·in·sect-2·and·so·on.·The·[ |
| 47 | ·················[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should | 50 | ·················[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should |
| 48 | ·················be·defined·globally·for·the·remaining·run.·Otherwise·they | 51 | ·················be·defined·globally·for·the·remaining·run.·Otherwise·they |
| Offset 60, 15 lines modified | Offset 63, 17 lines modified | ||
| 60 | ·················opposite·and·prevents·the·contents·of·block·to·be·expanded | 63 | ·················opposite·and·prevents·the·contents·of·block·to·be·expanded |
| 61 | ·················twice.·If·you·omit·it,·it·would·be·expanded·when·defining·the | 64 | ·················twice.·If·you·omit·it,·it·would·be·expanded·when·defining·the |
| 62 | ·················sect-1·macro·and·when·using·it·later·in·the·template. | 65 | ·················sect-1·macro·and·when·using·it·later·in·the·template. |
| 63 | ·················Generally·it·is·a·good·idea·to·use·noexpand·whenever·you·use | 66 | ·················Generally·it·is·a·good·idea·to·use·noexpand·whenever·you·use |
| 64 | ·················expand·in·a·block·around·it. | 67 | ·················expand·in·a·block·around·it. |
| 65 | ·················To·close·this·example·we·show·how·to·expand·the·sect-${sect- | 68 | ·················To·close·this·example·we·show·how·to·expand·the·sect-${sect- |
| 66 | ·················ctr}·blocks·in·the·template: | 69 | ·················ctr}·blocks·in·the·template: |
| 67 | ················· 1.· | 70 | ················· 1.·<a·href="mailto:$email">mailto·hyperlink</a> |
| 71 | ················· 2.·<a·href="http://$domain/~${username}/">another·hyperlink</ | ||
| 72 | ·················a> | ||
| 68 | ·················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ | 73 | ·················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ |
| 69 | ·················{sect-ctr}·is·defined.·If·it·is·defined·the·body·is·evaluated, | 74 | ·················{sect-ctr}·is·defined.·If·it·is·defined·the·body·is·evaluated, |
| 70 | ·················which·expands·the·macro·and·increases·sect-ctr.·Afterwards·the | 75 | ·················which·expands·the·macro·and·increases·sect-ctr.·Afterwards·the |
| 71 | ·················while·condition·is·checked·again·to·check·for·sect-2·macro. | 76 | ·················while·condition·is·checked·again·to·check·for·sect-2·macro. |
| 72 | ·················This·repeats·until·sect-${sect-ctr}·is·not·defined. | 77 | ·················This·repeats·until·sect-${sect-ctr}·is·not·defined. |
| 73 | ·················*****·Conclusions·***** | 78 | ·················*****·Conclusions·***** |
| 74 | ·················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it | 79 | ·················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it |
| Offset 114, 14 lines modified | Offset 114, 18 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
| 122 | · ·block<br> | ||
| 123 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 124 | <br> | ||
| 121 | </code></p> | 125 | </code></p> |
| 122 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
| 123 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 127 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
| 124 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 128 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
| 125 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 129 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
| 126 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 130 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
| 127 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text | 131 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text |
| Offset 1, 24 lines modified | Offset 1, 24 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents·········<[[ref]]WHILE·[NOT]·conditional> | ||
| 5 | ·Introduction··· · ·block | ||
| 6 | ·License········<[[ref]]/WHILE> | ||
| 7 | ·Tutorial | ||
| 4 | 8 | ·Usage··········*****·synopsis·***** | |
| 5 | · | 9 | ·HTP·Tags·······The·OUTPUT·tag·can·be·used·to·create·auxillary·files·besides |
| 6 | · | 10 | · ···ALTTEXT····the·main·HTML·file.·The·text·between·this·tag·and·the |
| 7 | · | 11 | · ···BLOCK······corresponding·</OUTPUT>·tag·is·written·to·output·file. |
| 8 | · | 12 | · ···BLOCKDEF···Normally·the·outputfile·is·cleared·before·writing·to·it,·but |
| 9 | · | 13 | · ···DEF········you·can·use·the·APPEND·attribute·to·extend·an·existing·file. |
| 10 | · ··· | 14 | · ···FILE·······The·text·written·to·the·file·is·normally·not·expanded,·i.e. |
| 11 | · ··· | 15 | · ···IF·········all·tags·inside·this·block·are·not·executed·but·written |
| 12 | · ··· | 16 | · ···INC········unmodified·to·the·file.·However,·you·can·use·the·EXPAND |
| 13 | · ··· | 17 | · ···IMG········attribute·to·override·this·behaviour. |
| 14 | · ···FILE | ||
| 15 | · ···IF | ||
| 16 | · ···INC | ||
| 17 | · ···IMG | ||
| 18 | · ···IMAGEURL | 18 | · ···IMAGEURL |
| 19 | · ···OPT | 19 | · ···OPT |
| 20 | ·[>]·OUTPUT | 20 | ·[>]·OUTPUT |
| 21 | · ···QUOTE | 21 | · ···QUOTE |
| 22 | · ···SET | 22 | · ···SET |
| 23 | · ···UNDEF | 23 | · ···UNDEF |
| 24 | · ···UNSET | 24 | · ···UNSET |
| Offset 28, 14 lines modified | Offset 28, 18 lines modified | ||
| 28 | ·History | 28 | ·History |
| 29 | ·Wish_list | 29 | ·Wish_list |
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |
| 34 | hosted·by | 34 | hosted·by |
| 35 | Sourceforge | 35 | Sourceforge |
| 36 | HTML·coding | 36 | HTML·coding |
| 37 | [Powered_by_htp] | 37 | [Powered_by_htp] |
| Offset 114, 14 lines modified | Offset 114, 18 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">APPEND</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">EXPAND</span><span·class="ebnf">]</span>></span><br> | ||
| 122 | text·block<br> | ||
| 123 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
| 124 | <br> | ||
| 121 | </code></p> | 125 | </code></p> |
| 122 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
| 123 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 127 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
| 124 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 128 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
| 125 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 129 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
| 126 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 130 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
| 127 | done·inside·a·quote·block. | 131 | done·inside·a·quote·block. |
| Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents·········<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
| 5 | ·Introduction···text·block | ||
| 6 | ·License········<[[ref]]/OUTPUT> | ||
| 7 | ·Tutorial | ||
| 4 | 8 | ·Usage··········*****·synopsis·***** | |
| 5 | · | 9 | ·HTP·Tags·······QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be |
| 6 | · | 10 | · ···ALTTEXT····interpreted·by·HTP.·It·may·be·useful·in·conjunction·with·a |
| 7 | · | 11 | · ···BLOCK······surrounding·EXPANDed·block·to·prevent·early·expansion·of·some |
| 8 | · | 12 | · ···BLOCKDEF···contained·blocks.·Note·that·'$'·evaluation·is·still·done |
| 9 | · | 13 | · ···DEF········inside·a·quote·block. |
| 10 | · ···ALTTEXT | ||
| 11 | · ···BLOCK | ||
| 12 | · ···BLOCKDEF | ||
| 13 | · ···DEF | ||
| 14 | · ···FILE | 14 | · ···FILE |
| 15 | · ···IF | 15 | · ···IF |
| 16 | · ···INC | 16 | · ···INC |
| 17 | · ···IMG | 17 | · ···IMG |
| 18 | · ···IMAGEURL | 18 | · ···IMAGEURL |
| 19 | · ···OPT | 19 | · ···OPT |
| 20 | · ···OUTPUT | 20 | · ···OUTPUT |
| Offset 24, 14 lines modified | Offset 24, 18 lines modified | ||
| 24 | · ···UNSET | 24 | · ···UNSET |
| 25 | · ···USE,_$ | 25 | · ···USE,_$ |
| 26 | · ···WHILE | 26 | · ···WHILE |
| 27 | · ···<!--- | 27 | · ···<!--- |
| 28 | ·History | 28 | ·History |
| 29 | ·Wish_list | 29 | ·Wish_list |
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |
| 34 | hosted·by | 34 | hosted·by |
| 35 | Sourceforge | 35 | Sourceforge |
| 36 | HTML·coding | 36 | HTML·coding |
| 37 | [Powered_by_htp] | 37 | [Powered_by_htp] |
| Offset 114, 45 lines modified | Offset 114, 26 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
| 122 | · ·block<br> | ||
| 123 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 124 | <br> | ||
| 121 | </code></p> | 125 | </code></p> |
| 122 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
| 123 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 127 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
| 124 | anywhere·in·the·HTML·document.··To·create·a·macro: | 128 | anywhere·in·the·HTML·document.··To·create·a·macro: |
| 125 | ··<p><code> | 129 | ··<p><code> |
| 126 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
| 127 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 128 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
| 129 | <br> | ||
| 130 | ><br> | ||
| 131 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 132 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
| 133 | 130 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | |
| 131 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
| 134 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
| 135 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
| 136 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 137 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 138 | <br> | ||
| 139 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
| 140 | <br> | ||
| 141 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
| 142 | <br> | ||
| 143 | ·This·will·fail:<br> | ||
| 144 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
| 145 | <br> | 132 | <br> |
| 146 | ·Instead,·use·*·like·this:<br> | ||
| 147 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
| 148 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
| 149 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 150 | · ·<br> | ||
| 151 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
| 152 | </code></p> | 133 | </code></p> |
| 153 | <P> | 134 | <P> |
| 154 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 135 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
| 155 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 136 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
| 156 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 137 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
| 157 | <A·HREF="use.html">'$'</A>·operator. | 138 | <A·HREF="use.html">'$'</A>·operator. |
| 158 | <P> | 139 | <P> |
| Offset 1, 57 lines modified | Offset 1, 37 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents·········<[[ref]]WHILE·[NOT]·conditional> | ||
| 5 | ·Introduction··· · ·block | ||
| 6 | ·License········<[[ref]]/WHILE> | ||
| 7 | ·Tutorial | ||
| 4 | 8 | ·Usage··········*****·synopsis·***** | |
| 5 | · | 9 | ·HTP·Tags·······SET·creates·a·macro·definition·that·can·later·be·expanded |
| 6 | · | 10 | · ···ALTTEXT····anywhere·in·the·HTML·document.·To·create·a·macro: |
| 11 | · ···BLOCK······<[[ref]]UNDEF·tagname> | ||
| 12 | · ···BLOCKDEF···<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
| 7 | ·Tutorial·······<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
| 8 | ·Usage··········<...·$macroname·...> | ||
| 9 | ·HTP·Tags·······<...·${macroname}·...> | ||
| 10 | · ···ALTTEXT | ||
| 11 | · ···BLOCK······> | ||
| 12 | · ···BLOCKDEF··· · ·<[[ref]]/IF> | ||
| 13 | · ···DEF········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
| 14 | · ···FILE······· · ·<[[ref]]USE·title> | ||
| 15 | · ···IF········· · ·<[[ref]]IF·size> | ||
| 16 | · ···INC········ · · · ·</FONT> | ||
| 17 | · ···IMG········ · ·<[[ref]]/IF> | ||
| 18 | · ···IMAGEURL··· ·<[[ref]]/DEF> | ||
| 19 | · ···OPT | ||
| 20 | · ···OUTPUT····· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
| 21 | · ···QUOTE | ||
| 22 | ·[>]·SET········ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
| 23 | · ··· | 13 | · ···DEF |
| 24 | · ···UNSET······ ·This·will·fail: | ||
| 25 | · ···USE,_$····· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another | ||
| 26 | · ···WHILE······title"> | ||
| 27 | · ···<!--- | ||
| 28 | ·History········ ·Instead,·use·*·like·this: | ||
| 29 | ·Wish_list······ ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
| 30 | ·Bugs··········· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
| 31 | ················· ·<[[ref]]/DEF> | ||
| 32 | ················· · | ||
| 33 | ················· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
| 34 | 14 | · ···FILE·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE·tag | |
| 35 | 15 | · ···IF·········is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the | |
| 36 | 16 | · ···INC········regular·text).·If·the·macro·needs·to·be·expanded·inside·a | |
| 37 | 17 | · ···IMG········markup·tag,·use·the·'$'·operator. | |
| 38 | 18 | · ···IMAGEURL···Multiple·macros·can·be·declared·in·a·single·markup·tag,·as·the | |
| 39 | 19 | · ···OPT········second·syntax·line·shows. | |
| 40 | 20 | · ···OUTPUT·····SET·should·only·be·used·for·a·single·line's·worth·of·text. | |
| 41 | 21 | · ···QUOTE······Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The·BLOCK | |
| 42 | 22 | ·[>]·SET········tag·is·also·useful·if·the·macro·contains·a·quotation·character | |
| 43 | 23 | · ···UNDEF······and·you·don't·want·to·fool·around·with·special·escape | |
| 44 | 24 | · ···UNSET······characters. | |
| 45 | 25 | · ···USE,_$·····Macros·can·be·redefined·by·using·another·SET·command·with·the | |
| 46 | 26 | · ···WHILE······same·macro·name.·The·prior·definition·will·be·destroyed, | |
| 47 | 27 | · ···<!---······however.·Also,·the·macro·can·be·removed·(destroyed)·with·the | |
| 48 | ·················UNSET·tag. | ||
| 28 | ·History········UNSET·tag. | ||
| 29 | ·Wish_list | ||
| 30 | ·Bugs | ||
| Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
| 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
| 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
| 18 | </table> | 18 | </table> |
| 19 | ···</td></tr> | 19 | ···</td></tr> |
| 20 | ··</table> | 20 | ··</table> |
| 21 | ··<hr> | 21 | ··<hr> |
| 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
| 23 | ··last·updated· | 23 | ··last·updated·Fri·Dec·25,·2026 |
| 24 | ·</body> | 24 | ·</body> |
| 25 | </html> | 25 | </html> |
| Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
| 1 | ···············******·Jochen·Hoenicke·****** | 1 | ···············******·Jochen·Hoenicke·****** |
| 2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
| 3 | Main···········Room:··Bld.52·00-020 | 3 | Main···········Room:··Bld.52·00-020 |
| 4 | Example········Phone:·+49·761·203-8243 | 4 | Example········Phone:·+49·761·203-8243 |
| 5 | ···············Fax:···+49·761·203-8242 | 5 | ···············Fax:···+49·761·203-8242 |
| 6 | =============================================================================== | 6 | =============================================================================== |
| 7 | Copyright·by·Joe_Doe. | 7 | Copyright·by·Joe_Doe. |
| 8 | last·updated· | 8 | last·updated·Fri·Dec·25,·2026 |
| Offset 5, 9 lines modified | Offset 5, 9 lines modified | ||
| 5 | <meta·name="Generator"·content="htp·1.19"> | 5 | <meta·name="Generator"·content="htp·1.19"> |
| 6 | </head> | 6 | </head> |
| 7 | <body> | 7 | <body> |
| 8 | This·page·was·produced·by·htp. | 8 | This·page·was·produced·by·htp. |
| 9 | <hr> | 9 | <hr> |
| 10 | Copyright·by·Joe·Doe, | 10 | Copyright·by·Joe·Doe, |
| 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, | 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, |
| 12 | last·updated· | 12 | last·updated·Fri·Dec·25,·2026 |
| 13 | </body> | 13 | </body> |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | This·page·was·produced·by·htp. | 1 | This·page·was·produced·by·htp. |
| 2 | =============================================================================== | 2 | =============================================================================== |
| 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated· | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Fri·Dec·25,·2026 |
| Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
| 13 | <p> | 13 | <p> |
| 14 | As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | As·you·can·see·the·file·contains·almost·only·the·contents. |
| 15 | </p> | 15 | </p> |
| 16 | ···</td></tr> | 16 | ···</td></tr> |
| 17 | ··</table> | 17 | ··</table> |
| 18 | ··<hr> | 18 | ··<hr> |
| 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
| 20 | ··last·updated· | 20 | ··last·updated·Fri·Dec·25,·2026 |
| 21 | ·</body> | 21 | ·</body> |
| 22 | </html> | 22 | </html> |
| Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
| 1 | Navigation·bar·*****·Here·is·the·content·***** | 1 | Navigation·bar·*****·Here·is·the·content·***** |
| 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
| 3 | Example | 3 | Example |
| 4 | =============================================================================== | 4 | =============================================================================== |
| 5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
| 6 | last·updated· | 6 | last·updated·Fri·Dec·25,·2026 |
| Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
| 13 | ·<p> | 13 | ·<p> |
| 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. |
| 15 | ·</p> | 15 | ·</p> |
| 16 | ···</td></tr> | 16 | ···</td></tr> |
| 17 | ··</table> | 17 | ··</table> |
| 18 | ··<hr> | 18 | ··<hr> |
| 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> |
| 20 | ··last·updated· | 20 | ··last·updated·Fri·Dec·25,·2026 |
| 21 | ·</body> | 21 | ·</body> |
| 22 | </html> | 22 | </html> |
| Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
| 1 | Navigation·bar·*****·Here·are·the·contents·***** | 1 | Navigation·bar·*****·Here·are·the·contents·***** |
| 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
| 3 | Example | 3 | Example |
| 4 | =============================================================================== | 4 | =============================================================================== |
| 5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
| 6 | last·updated· | 6 | last·updated·Fri·Dec·25,·2026 |
| Offset 114, 44 lines modified | Offset 114, 33 lines modified | ||
| 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
| 115 | ··</table> | 115 | ··</table> |
| 116 | ··</div> | 116 | ··</div> |
| 117 | </td> | 117 | </td> |
| 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
| 119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
| 120 | ··<p><code> | 120 | ··<p><code> |
| 121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
| 122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
| 121 | </code></p> | 123 | </code></p> |
| 122 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
| 123 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 125 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
| 124 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 126 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
| 125 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 127 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
| 126 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 128 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
| 127 | old·macro·definition·will·be·removed·automatically.) | 129 | old·macro·definition·will·be·removed·automatically.) |
| 128 | <P> | 130 | <P> |
| 129 | For·example: | 131 | For·example: |
| 130 | ··<p><code> | 132 | ··<p><code> |
| 133 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 134 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 131 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
| 132 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
| 133 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
| 134 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
| 135 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
| 136 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
| 137 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
| 138 | </code></p> | 135 | </code></p> |
| 139 | <P> | 136 | <P> |
| 140 | More·than·one·macro·may·be·removed·in·the·same·tag: | 137 | More·than·one·macro·may·be·removed·in·the·same·tag: |
| 141 | ··<p><code> | 138 | ··<p><code> |
| 139 | · ·<span·class="htp-tag"><<span·class="htp-macro">${tagName}</span>·<span·class="htp-attrib"><span·class="htp-macro">${attrName}</span></span>=<span·class="htp-value"><span·class="htp-macro">${value$ctr}</span></span>></span><br> | ||
| 142 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
| 143 | · ·...<br> | ||
| 144 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
| 145 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 146 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
| 147 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
| 148 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
| 149 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> | ||
| 150 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
| 151 | </code></p> | 140 | </code></p> |
| 152 | <p> | 141 | <p> |
| 153 | </td> | 142 | </td> |
| 154 | </tr> | 143 | </tr> |
| 155 | <tr> | 144 | <tr> |
| 156 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 145 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
| 157 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 146 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
| Offset 1, 54 lines modified | Offset 1, 44 lines modified | ||
| 1 | [HTP] | 1 | [HTP] |
| 2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
| 3 | Table_of·········*****·syntax·***** | 3 | Table_of·········*****·syntax·***** |
| 4 | Contents········· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
| 5 | ·Introduction···email="jnelson@crl.com"> | ||
| 6 | ·License········ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
| 4 | 7 | ·Tutorial·······*****·synopsis·***** | |
| 5 | · | 8 | ·Usage··········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The |
| 6 | · | 9 | ·HTP·Tags·······macro·is·subsequently·not·available·for·use·in·the·pre- |
| 7 | · | 10 | · ···ALTTEXT····processed·files.·(Note·that·simply·redefining·the·macro·with |
| 8 | · | 11 | · ···BLOCK······another·SET·or·BLOCK·definition·with·the·same·name·is |
| 9 | · | 12 | · ···BLOCKDEF···acceptable.·The·old·macro·definition·will·be·removed |
| 10 | · ··· | 13 | · ···DEF········automatically.) |
| 11 | · ··· | 14 | · ···FILE·······For·example: |
| 15 | · ···IF·········<a·href="mailto:$email">mailto·hyperlink</a> | ||
| 16 | · ···INC········<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
| 12 | · ···BLOCKDEF··· ·<[[ref]]set·sect-ctr="0"> | ||
| 13 | · ···DEF········ ·<[[ref]]blockdef·name="section"> | ||
| 14 | · ···FILE······· · ·<[[ref]]inc·sect-ctr> | ||
| 15 | · ···IF········· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
| 16 | · ···INC········ · · ·<[[ref]]use·block·noexpand> | ||
| 17 | · ···IMG········ · ·<[[ref]]/block> | ||
| 18 | · ···IMAGEURL··· ·<[[ref]]/blockdef> | ||
| 19 | · ··· | 17 | · ···IMG········More·than·one·macro·may·be·removed·in·the·same·tag: |
| 20 | · ···OUTPUT····· ·<[[ref]]WHILE·sect-$i> | ||
| 21 | · ···QUOTE······ · ·... | ||
| 22 | · ···SET········ · ·<[[ref]]INC·i> | ||
| 23 | · ···UNDEF······ ·<[[ref]]/WHILE> | ||
| 24 | ·[>]·UNSET······ ·<[[ref]]while·sect-${sect-ctr}> | ||
| 25 | · ···USE,_$····· · ·<[[ref]]use·sect-${sect-ctr}> | ||
| 26 | · ···WHILE······ · ·<[[ref]]inc·sect-ctr> | ||
| 27 | · ···<!---······ ·<[[ref]]/while> | ||
| 28 | · | 18 | · ···IMAGEURL··· · ·<${tagName}·${attrName}=${value$ctr}> |
| 19 | · ···OPT | ||
| 20 | · ···OUTPUT | ||
| 21 | · ···QUOTE | ||
| 22 | · ···SET | ||
| 23 | · ···UNDEF | ||
| 24 | ·[>]·UNSET | ||
| 25 | · ···USE,_$ | ||
| 26 | · ···WHILE | ||
| 27 | · ···<!--- | ||
| 28 | ·History | ||
| 29 | ·Wish_list | 29 | ·Wish_list |
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |
| 34 | hosted·by | 34 | hosted·by |
| 35 | Sourceforge | 35 | Sourceforge |
| Offset 131, 15 lines modified | Offset 131, 39 lines modified | ||
| 131 | attribute·to·prevent·further·expansion.··</p> | 131 | attribute·to·prevent·further·expansion.··</p> |
| 132 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 132 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
| 133 | for·the·expanded·macro.··This·is·only·valid·for·<A | 133 | for·the·expanded·macro.··This·is·only·valid·for·<A |
| 134 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 134 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
| 135 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 135 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
| 136 | example:</p> | 136 | example:</p> |
| 137 | ··<p><code> | 137 | ··<p><code> |
| 138 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span> | 138 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> |
| 139 | <font·size="-2"> 2.·</font> OPTION="SRC·TITLE·SIZE"><br> | ||
| 140 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
| 141 | <font·size="-2"> 4.·</font> · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
| 142 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 143 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
| 144 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
| 145 | <font·size="-2"> 8.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
| 146 | <font·size="-2"> 9.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
| 147 | <font·size="-2">10.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
| 148 | <font·size="-2">11.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 149 | <font·size="-2">12.·</font><br> | ||
| 150 | <font·size="-2">13.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
| 151 | <font·size="-2">14.·</font><br> | ||
| 152 | <font·size="-2">15.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
| 153 | <font·size="-2">16.·</font><br> | ||
| 154 | <font·size="-2">17.·</font> ·This·will·fail:<br> | ||
| 155 | <font·size="-2">18.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
| 156 | <font·size="-2">19.·</font><br> | ||
| 157 | <font·size="-2">20.·</font> ·Instead,·use·*·like·this:<br> | ||
| 158 | <font·size="-2">21.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
| 159 | <font·size="-2">22.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
| 160 | <font·size="-2">23.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
| 161 | <font·size="-2">24.·</font> · ·<br> | ||
| 162 | <font·size="-2">25.·</font> ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
| 139 | </code></p> | 163 | </code></p> |
| 140 | <P> | 164 | <P> |
| 141 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 165 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
| 142 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 166 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
| 143 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 | 167 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 |
| 144 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is | 168 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is |
| 145 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 169 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
| Offset 150, 23 lines modified | Offset 174, 15 lines modified | ||
| 150 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 174 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
| 151 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 175 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
| 152 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 176 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
| 153 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 177 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
| 154 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 178 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
| 155 | processing·the·contents. | 179 | processing·the·contents. |
| 156 | ··<p><code> | 180 | ··<p><code> |
| 181 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
| 157 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
| 158 | <font·size="-2"> 2.·</font> · ·...<br> | ||
| 159 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
| 160 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
| 161 | <font·size="-2"> 5.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
| 162 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
| 163 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
| 164 | <font·size="-2"> 8.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> | ||
| 165 | <font·size="-2"> 9.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
| 166 | </code></p> | 182 | </code></p> |
| 167 | <P> | 183 | <P> |
| 168 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 184 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
| 169 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 185 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
| 170 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 186 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
| 171 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 187 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
| 172 | and·"_"·that·follows·it. | 188 | and·"_"·that·follows·it. |
| Offset 10, 38 lines modified | Offset 10, 55 lines modified | ||
| 10 | · ···ALTTEXT····want,·for·example,·if·the·use·is·inside·a·block·which·expands | 10 | · ···ALTTEXT····want,·for·example,·if·the·use·is·inside·a·block·which·expands |
| 11 | · ···BLOCK······itself.·You·can·use·the·noexpand·attribute·to·prevent·further | 11 | · ···BLOCK······itself.·You·can·use·the·noexpand·attribute·to·prevent·further |
| 12 | · ···BLOCKDEF···expansion. | 12 | · ···BLOCKDEF···expansion. |
| 13 | · ···DEF········USE·will·accept·additional·parameters,·which·are·"local" | 13 | · ···DEF········USE·will·accept·additional·parameters,·which·are·"local" |
| 14 | · ···FILE·······macros·for·the·expanded·macro.·This·is·only·valid·for·BLOCK | 14 | · ···FILE·······macros·for·the·expanded·macro.·This·is·only·valid·for·BLOCK |
| 15 | · ···IF·········macros.·Macros·created·using·SET·cannot·have·parameters | 15 | · ···IF·········macros.·Macros·created·using·SET·cannot·have·parameters |
| 16 | · ···INC········passed.·For·example: | 16 | · ···INC········passed.·For·example: |
| 17 | · ···IMG········ 1.· · ·<[[ref]]unset·email_addr | 17 | · ···IMG········ 1.· · ·<[[ref]]unset·email_addr> |
| 18 | · ···IMAGEURL··· 2.· OPTION="SRC·TITLE·SIZE"> | ||
| 19 | · ···OPT········ 3.· · ·<[[ref]]IF·size> | ||
| 20 | · ···OUTPUT····· 4.· · · · ·<FONT·SIZE=${size}> | ||
| 21 | · ···QUOTE······ 5.· · ·<[[ref]]/IF> | ||
| 22 | · ···SET········ 6.· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
| 23 | · ···UNDEF······ 7.· · ·<[[ref]]USE·title> | ||
| 24 | · ···UNSET······ 8.· · ·<[[ref]]IF·size> | ||
| 25 | ·[>]·USE,_$····· 9.· · · · ·</FONT> | ||
| 26 | · ···WHILE······10.· · ·<[[ref]]/IF> | ||
| 27 | · ···<!---······11.· ·<[[ref]]/DEF> | ||
| 28 | ·History········12. | ||
| 29 | ·Wish_list······13.· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
| 30 | ·Bugs···········14. | ||
| 31 | ·················15.· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
| 32 | ·················16. | ||
| 33 | ·················17.· ·This·will·fail: | ||
| 34 | ·················18.· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another | ||
| 35 | ·················title"> | ||
| 36 | ·················19. | ||
| 37 | ·················20.· ·Instead,·use·*·like·this: | ||
| 38 | ·················21.· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
| 39 | ·················22.· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
| 40 | ·················23.· ·<[[ref]]/DEF> | ||
| 41 | ·················24.· · | ||
| 42 | ·················25.· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
| 18 | 43 | ·················(See·below·for·a·description·of·the·'$'·operator.)·The·example | |
| 19 | 44 | ·················on·line·7·works·because·"stuff"·has·been·declared·as·a·block | |
| 20 | 45 | ·················macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff" | |
| 21 | 46 | ·················macro.·Line·8·fails·because·the·"email"·macro·is·unavailable | |
| 22 | 47 | ·················once·the·block·macro·is·completely·expanded,·and·cannot·be | |
| 23 | 48 | ·················passed·to·a·SET·macro. | |
| 24 | 49 | ·················Note·that·the·"email"·macro·is·available·to·other·macros·or | |
| 25 | 50 | ·················included·files·called·within·the·"stuff"·block. | |
| 26 | 51 | ·················Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other | |
| 27 | 52 | ·················standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The | |
| 28 | 53 | ·················'$'·should·be·immediately·followed·by·the·macro·name,·which | |
| 29 | 54 | ·················may·or·may·not·be·surrounded·by·curly·braces.·When·htp | |
| 30 | 55 | ·················encounters·this·it·replaces·the·macro·name·by·the·contents·of | |
| 31 | ·················the·macro·without·further·processing·the·contents. | 56 | ·················the·macro·without·further·processing·the·contents. |
| 57 | ················· 1.· · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
| 32 | ················· 1.· ·<[[ref]]WHILE·sect-$i> | ||
| 33 | ················· 2.· · ·... | ||
| 34 | ················· 3.· · ·<[[ref]]INC·i> | ||
| 35 | ················· 4.· ·<[[ref]]/WHILE> | ||
| 36 | ················· 5.· ·<[[ref]]while·sect-${sect-ctr}> | ||
| 37 | ················· 6.· · ·<[[ref]]use·sect-${sect-ctr}> | ||
| 38 | ················· 7.· · ·<[[ref]]inc·sect-ctr> | ||
| 39 | ················· 8.· ·<[[ref]]/while> | ||
| 40 | ················· 9.·<[[ref]]file·include="footer.hti"> | ||
| 41 | ·················The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust | 58 | ·················The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust |
| 42 | ·················and·should·never·cause·confusion·with·surrounding·text.·If·no | 59 | ·················and·should·never·cause·confusion·with·surrounding·text.·If·no |
| 43 | ·················curly·braces·are·used·the·macro·name·consists·either·of·a | 60 | ·················curly·braces·are·used·the·macro·name·consists·either·of·a |
| 44 | ·················single·punctuation·character·or·the·maximum·sequence·of | 61 | ·················single·punctuation·character·or·the·maximum·sequence·of |
| 45 | ·················letters,·digits,·"-"·and·"_"·that·follows·it. | 62 | ·················letters,·digits,·"-"·and·"_"·that·follows·it. |
| 46 | ·················If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and | 63 | ·················If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and |
| 47 | ·················not·interpreted·as·a·macro·name,·it·must·be·escaped·by·another | 64 | ·················not·interpreted·as·a·macro·name,·it·must·be·escaped·by·another |
| Offset 124, 22 lines modified | Offset 124, 30 lines modified | ||
| 124 | The·basic·form·is·shown·above. | 124 | The·basic·form·is·shown·above. |
| 125 | <P> | 125 | <P> |
| 126 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 126 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
| 127 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 127 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
| 128 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 128 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
| 129 | conditional·is·reversed: | 129 | conditional·is·reversed: |
| 130 | ··<p><code> | 130 | ··<p><code> |
| 131 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
| 132 | <span·class="htp-tag">< | 131 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>></span><br> |
| 132 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
| 133 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
| 134 | <br> | ||
| 135 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>></span><br> | ||
| 136 | · ·<span·class="htp-tag"></font></span><br> | ||
| 137 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
| 138 | <br> | ||
| 139 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
| 133 | </code></p> | 140 | </code></p> |
| 134 | <P> | 141 | <P> |
| 135 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a | 142 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
| 136 | macro's·existance: | 143 | macro's·existance: |
| 137 | ··<p><code> | 144 | ··<p><code> |
| 138 | · ·<span·class="htp-tag"><<span | 145 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nels[·...·truncated·by·diffoscope;·len:·91,·SHA:·e3a4194b2005dc79de96d048404af54ee26ace7020a13078a34de50b2b13650a·...·]</span>></span><br> |
| 146 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
| 139 | </code></p> | 147 | </code></p> |
| 140 | <P> | 148 | <P> |
| 141 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 149 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
| 142 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 150 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
| 143 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 151 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
| 144 | <P> | 152 | <P> |
| 145 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 153 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
| Offset 4, 41 lines modified | Offset 4, 50 lines modified | ||
| 4 | Contents·········*****·synopsis·***** | 4 | Contents·········*****·synopsis·***** |
| 5 | ·Introduction···WHILE·is·the·building·block·for·repeated·processing.·The·basic | 5 | ·Introduction···WHILE·is·the·building·block·for·repeated·processing.·The·basic |
| 6 | ·License········form·is·shown·above. | 6 | ·License········form·is·shown·above. |
| 7 | ·Tutorial·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 7 | ·Tutorial·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
| 8 | ·Usage··········A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a | 8 | ·Usage··········A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a |
| 9 | ·HTP·Tags·······literal·string.·If·the·NOT·tag·is·present·in·the·WHILE·markup, | 9 | ·HTP·Tags·······literal·string.·If·the·NOT·tag·is·present·in·the·WHILE·markup, |
| 10 | · ···ALTTEXT····the·evaluation·of·the·conditional·is·reversed: | 10 | · ···ALTTEXT····the·evaluation·of·the·conditional·is·reversed: |
| 11 | · ···BLOCK······<a·href="mailto:$email">mailto·hyperlink</a> | ||
| 12 | · ···BLOCK | 11 | · ···BLOCK······ ·<[[ref]]def·name="bigfont"> |
| 12 | · ···BLOCKDEF··· · ·<font·size="+4"> | ||
| 13 | · ···DEF········ ·<[[ref]]/def> | ||
| 14 | · ···FILE | ||
| 15 | · ···IF········· ·<[[ref]]def·name="/bigfont"> | ||
| 16 | · ···INC········ · ·</font> | ||
| 17 | · ···IMG········ ·<[[ref]]/def> | ||
| 18 | · ···IMAGEURL | ||
| 19 | · ···OPT········ ·<bigfont>Some·large·text</bigfont> | ||
| 13 | · ··· | 20 | · ···OUTPUT·····Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
| 14 | · ··· | 21 | · ···QUOTE······existance: |
| 15 | · ··· | 22 | · ···SET········ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" |
| 23 | · ···UNDEF······email="jnelson@crl.com"> | ||
| 24 | · ···UNSET······ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
| 16 | · ··· | 25 | · ···USE,_$·····If·the·condition·is·true,·the·block·is·evaluated·and |
| 17 | · | 26 | ·[>]·WHILE······afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- |
| 18 | · ··· | 27 | · ···<!---······operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on |
| 19 | · | 28 | ·History········each·iteration. |
| 20 | · | 29 | ·Wish_list······A·loop·block·must·be·closed·with·the·/WHILE·tag. |
| 21 | · ···QUOTE | ||
| 22 | · ···SET | ||
| 23 | · ···UNDEF | ||
| 24 | · ···UNSET | ||
| 25 | · ···USE,_$ | ||
| 26 | ·[>]·WHILE | ||
| 27 | · ···<!--- | ||
| 28 | ·History | ||
| 29 | ·Wish_list | ||
| 30 | ·Bugs | 30 | ·Bugs |
| 31 | ··page_source | 31 | ··page_source |
| 32 | ··htp_project | 32 | ··htp_project |
| 33 | ··htp_homepage | 33 | ··htp_homepage |