Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·f95205d6135077fe67f7ffb7439955a0·70056·debug·optional·htp-dbgsym_1.19-8_amd64.deb | 1 | ·f95205d6135077fe67f7ffb7439955a0·70056·debug·optional·htp-dbgsym_1.19-8_amd64.deb |
2 | · | 2 | ·7a4a4061f042f0e4f96298a94fbbab9f·119764·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·····3612·2020-06-14·23:21:19.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3612·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···115960·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:·6 | 5 | Installed-Size:·654 |
6 | Depends:·libc6·(>=·2.14) | 6 | Depends:·libc6·(>=·2.14) |
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 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67928·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67928·2020-06-14·23:21:19.000000·./usr/bin/htp |
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)····1 | 8 | -rw-r--r--···0·root·········(0)·root·········(0)····10917·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)···· | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····8267·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)···· | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····8739·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)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)·····3273·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)····11088·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)····1 | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····13720·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 32, 64 lines modified | Offset 32, 64 lines modified | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp |
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html | 33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html |
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)·····9 | 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····9899·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)····1 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····16003·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)····1 | 48 | -rw-r--r--···0·root·········(0)·root·········(0)····10422·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)····10 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····10276·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)····· | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····9052·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)···· | 54 | -rw-r--r--···0·root·········(0)·root·········(0)····11007·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 |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html |
59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp | 59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp |
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)····13416·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)····· | 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····8441·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)····11546·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)····11412·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)····10220·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 102, 23 lines modified | Offset 102, 23 lines modified | ||
102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html |
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)····· | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····8009·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)·····9337·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)····120 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····13207·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)····10 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····10425·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 | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/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, 59 lines modified | Offset 114, 53 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="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">"blockname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">EXPAND</span><span·class="ebnf">]</span>></span><br> | ||
122 | te | 121 | <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="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&[·...·truncated·by·diffoscope;·len:·10,·SHA:·9e8ef223149d0770d69b29fa44c8431955f80464ef9389f8dc60852e89aca98d·...·]<br> |
122 | · ·block·#1<br> | ||
123 | [<br> | ||
124 | <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> | ||
125 | · ·block·#2<br> | ||
126 | ...<br> | ||
127 | ]<br> | ||
128 | [<br> | ||
129 | <span·class="htp-tag"><ELSE></span><br> | ||
130 | · ·block·#3<br> | ||
131 | ]<br> | ||
123 | <span·class="htp-tag"><<a·href=" | 132 | <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> |
124 | <br> | 133 | <br> |
125 | </code></p> | 134 | </code></p> |
126 | <h2>synopsis</h2> | 135 | <h2>synopsis</h2> |
127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 136 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
128 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 137 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
129 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 138 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
130 | filename·is·considered·in·all·comparisons. | 139 | filename·is·considered·in·all·comparisons. |
131 | <p> | 140 | <p> |
132 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 141 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
133 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 142 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
134 | be·overridden·on·specific·images·and·default·text·on·all·others. | 143 | be·overridden·on·specific·images·and·default·text·on·all·others. |
135 | <p> | 144 | <p> |
136 | For·example: | 145 | For·example: |
137 | ··<p><code> | 146 | ··<p><code> |
138 | | 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">"imghr"</span>></span><br> |
139 | ·<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-value">a</span>></span><br> | ||
140 | · | 148 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">[·...·truncated·by·diffoscope;·len:·21,·SHA:·929f44f9c1c1cb2f950b815731944e1903ccb629bc7441d9da2156572ecf0f3b·...·]<br> |
149 | · <span·class="htp-tag"><tr></span><br> | ||
150 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
151 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
152 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
153 | · <span·class="htp-tag"></tr></span><br> | ||
154 | · <span·class="htp-tag"></table></span><br> | ||
141 | | 155 | <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> |
156 | <br> | ||
157 | paragraph<br> | ||
158 | <span·class="htp-tag"><imghr></span><br> | ||
159 | paragraph<br> | ||
142 | ·<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-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
143 | · ·b·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> | ||
144 | ·<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> | ||
145 | ·<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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
146 | ·<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">a</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">b</span>></span><br> | ||
148 | ·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
149 | ·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
150 | ·<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-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
151 | · ·c·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>;·<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">a</span>></span><br> | ||
152 | ·<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> | ||
153 | ·<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-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
154 | · ·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
155 | ·<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> | ||
156 | ·<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-value">e</span>></span><br> | ||
157 | · ·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
158 | ·<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> | ||
159 | ·<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">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
160 | ·<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-value">a</span>></span><br> | ||
161 | · ·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> | ||
162 | ·<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> | ||
163 | ·<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">c</span>></span><br> | ||
164 | ·<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">d</span>></span><br> | ||
165 | ·<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">e</span>></span><br> | ||
166 | </code></p> | 160 | </code></p> |
167 | <p> | 161 | <p> |
168 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 162 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
169 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 163 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
170 | changed. | 164 | changed. |
171 | <p> | 165 | <p> |
172 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 166 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 59 lines modified | Offset 1, 55 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of | 3 | Table_of_Contents····*****·syntax·***** |
4 | Contents·······<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> | ||
5 | Introduction·text·block | ||
6 | License······<[[ref]]/BLOCK> | ||
7 | | 4 | Introduction·······<[[ref]]IF·[NOT]·conditional> |
5 | License············ · ·block·#1 | ||
6 | Tutorial···········[ | ||
7 | Usage··············<ELSEIF·[NOT]·conditional> | ||
8 | HTP·Tags··········· · ·block·#2 | ||
9 | [>]·ALTTEXT········... | ||
10 | ··BLOCK··········] | ||
11 | ··BLOCKDEF·······[ | ||
12 | ··DEF············<ELSE> | ||
13 | ··FILE··········· · ·block·#3 | ||
14 | ··IF·············] | ||
15 | ··INC············<[[ref]]/IF> | ||
16 | ··IMG | ||
8 | | 17 | ··IMAGEURL·······*****·synopsis·***** |
9 | | 18 | ··OPT············ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a |
10 | [>]·ALTTEXT··the·ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the | ||
11 | ·· | 19 | ··OUTPUT·········SRC·matching·the·ALTTEXT·NAME.·Since·relative·paths·can |
20 | ··QUOTE··········be·used·to·point·to·the·same·image,·only·the·filename·is | ||
21 | ··SET············considered·in·all·comparisons. | ||
12 | ·· | 22 | ··UNDEF··········When·an·IMG·tag·with·a·matching·source·is·encountered, |
13 | ·· | 23 | ··UNSET··········htp·will·add·an·ALT·attribute·only·if·one·is·not·already |
24 | ··USE,_$·········present.·This·allows·for·ALT·text·to·be·overridden·on | ||
14 | ·· | 25 | ··WHILE··········specific·images·and·default·text·on·all·others. |
15 | ··IF·······others. | ||
16 | ·· | 26 | ··<!---··········For·example: |
27 | History············ <[[ref]]def·name="imghr"> | ||
28 | Wish_list·········· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
29 | Bugs··············· · <tr> | ||
30 | ····················· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
31 | ····················· · ·<td·width="95%"·background="midsep.png"> </td> | ||
32 | ····················· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
33 | ····················· · </tr> | ||
34 | ····················· · </table> | ||
17 | ··IMG······ ·<[[ref]]set·time="0"> | ||
18 | ··IMAGEURL· ·<[[ref]]block·name=a> | ||
19 | ··OPT······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
20 | ··OUTPUT··· ·<[[ref]]/block> | ||
21 | ··QUOTE···· ·<[[ref]]block·name=b·expand> | ||
22 | ··SET······ · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
23 | ··UNDEF···· ·<[[ref]]/block> | ||
24 | ··UNSET···· ·<[[ref]]set·time="1"> | ||
25 | ··USE,_$··· ·<[[ref]]use·a> | ||
26 | ··WHILE···· ·<[[ref]]use·b> | ||
27 | ··<!---···· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
28 | History······ ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
29 | Wish_list···· ·<[[ref]]block·name=c·expand> | ||
30 | Bugs········· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
31 | ··············· ·<[[ref]]/block> | ||
32 | ··············· ·<[[ref]]block·name=d·expand> | ||
33 | ··············· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
34 | ··············· ·<[[ref]]/block> | ||
35 | ··············· ·<[[ref]]block·name=e> | ||
36 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
37 | ··············· ·<[[ref]]/block> | ||
38 | ··············· ·<[[ref]]set·time="2"> | ||
39 | ··············· ·<[[ref]]block·name=a> | ||
40 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
41 | ··············· ·<[[ref]]/block> | ||
42 | ··············· | 35 | ····················· <[[ref]]/def> |
43 | ··············· ·<[[ref]]use·d> | ||
44 | ··············· ·<[[ref]]use·e> | ||
36 | ····················· paragraph | ||
37 | ····················· <imghr> | ||
38 | ····················· paragraph | ||
45 | ···············An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes | 39 | ·····················An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes |
46 | ···············mapping·for·this·image.·Successing·IMG·tags·wi | 40 | ·····················any·ALT·mapping·for·this·image.·Successing·IMG·tags·with |
47 | ···············are·not·changed. | 41 | ·····················a·matching·SRC·name·are·not·changed. |
48 | ···············Since·this·is·useful·for·an·image·used·throughout·a·s | 42 | ·····················Since·this·is·useful·for·an·image·used·throughout·a·set |
49 | ···············ALTTEXT·is·most·appropriate·in·an·inclu | 43 | ·····················of·documents,·ALTTEXT·is·most·appropriate·in·an·include |
44 | ·····················file·or·a·default_file. | ||
50 | ···············In·addition·to·ALTTEXT,·htp·can·also·automatically·a | 45 | ·····················In·addition·to·ALTTEXT,·htp·can·also·automatically·add |
51 | ···············HEIGHT·attributes·to·IMG·tags. | 46 | ·····················WIDTH·and·HEIGHT·attributes·to·IMG·tags. |
Offset 72, 17 lines modified | Offset 68, 16 lines modified | ||
72 | page_source | 68 | page_source |
73 | htp_project | 69 | htp_project |
74 | htp_homepage | 70 | htp_homepage |
75 | hosted·by | 71 | hosted·by |
76 | Sourceforge | 72 | Sourceforge |
77 | HTML·coding | 73 | HTML·coding |
78 | [Powered_by | 74 | [Powered_by_htp] |
79 | htp] | ||
80 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 75 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
81 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 76 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
82 | ·····Maintainers:·Jochen_Hoenicke. | 77 | ·····Maintainers:·Jochen_Hoenicke. |
83 | Copyright·©·1995–96·Jim·Nelson. | 78 | Copyright·©·1995–96·Jim·Nelson. |
84 | Copyright·©·2001–2014·Jochen_Hoenicke. | 79 | Copyright·©·2001–2014·Jochen_Hoenicke. |
85 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 80 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
86 | terms·described·in·the·License_section. | 81 | according·to·terms·described·in·the·License_section. |
87 | last·updated·Sat·May·16,·2015 | 82 | last·updated·Sat·May·16,·2015 |
Offset 114, 42 lines modified | Offset 114, 16 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="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="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="ebnf">]</span>></span><br> | ||
122 | <br> | ||
121 | ·<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">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<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-value">a</span>></span><br> | ||
123 | · ·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 | ·<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> | ||
125 | ·<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-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
126 | · ·b·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> | ||
127 | ·<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> | ||
128 | ·<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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<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">a</span>></span><br> | ||
130 | ·<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">b</span>></span><br> | ||
131 | ·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<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-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·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>;·<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">a</span>></span><br> | ||
135 | ·<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> | ||
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·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
138 | ·<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> | ||
139 | ·<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-value">e</span>></span><br> | ||
140 | · ·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<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> | ||
142 | ·<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">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
143 | ·<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-value">a</span>></span><br> | ||
144 | · ·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> | ||
145 | ·<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> | ||
146 | ·<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">c</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">d</span>></span><br> | ||
148 | ·<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">e</span>></span><br> | ||
149 | </code></p> | 123 | </code></p> |
150 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
151 | <P> | 125 | <P> |
152 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 126 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
153 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 127 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
154 | multi-line·definitions. | 128 | multi-line·definitions. |
155 | </P> | 129 | </P> |
Offset 1, 59 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/ | ||
5 | License····················local/filesystem"·]> | ||
6 | Tutorial | ||
4 | Contents······· ·<[[ref]]set·time="0"> | ||
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | [>]·BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | ··DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
32 | ···············*****·synopsis·***** | 7 | Usage······················*****·synopsis·***** |
33 | ···············BLOCK·and·/BLOCK·are·used·to·create·block·macros, | 8 | HTP·Tags···················BLOCK·and·/BLOCK·are·used·to·create·block·macros, |
34 | ·· | 9 | ··ALTTEXT················which·are·similar·in·use·to·SET·macros,·but·can·be |
10 | [>]·BLOCK··················multi-line·definitions. | ||
35 | ···············Any·text·and·formatting·may·be·set·inside·th | 11 | ··BLOCKDEF···············Any·text·and·formatting·may·be·set·inside·the |
12 | ··DEF····················block.·You·can·use·any·htp·or·user·defined·metatag | ||
36 | 13 | ··FILE···················including·FILE_INCLUDE.·The·metatags·won't·be | |
37 | ··············· | 14 | ··IF·····················expanded·before·the·block·is·USEd·except·if·you |
38 | ···············parameter. | 15 | ··INC····················give·the·EXPAND·parameter. |
39 | ···············The·block·macro·is·dereferenced·(expanded)·wi | 16 | ··IMG····················The·block·macro·is·dereferenced·(expanded)·with |
17 | ··IMAGEURL···············the·USE_tag_or_the_'$'_operator.·See·the·notes·on | ||
40 | 18 | ··OPT····················the·USE·tag·on·how·to·pass·parameters·to·a·block | |
41 | ···············block·macro. | ||
19 | ··OUTPUT·················macro. | ||
20 | ··QUOTE | ||
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 61, 18 lines modified | Offset 39, 17 lines modified | ||
61 | page_source | 39 | page_source |
62 | htp_project | 40 | htp_project |
63 | htp_homepage | 41 | htp_homepage |
64 | hosted·by | 42 | hosted·by |
65 | Sourceforge | 43 | Sourceforge |
44 | HTML·coding·[Powered_by | ||
66 | HTML·coding | ||
67 | [Powered_by | ||
68 | htp] | 45 | htp] |
69 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 46 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
70 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 47 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
71 | ·····Maintainers:·Jochen_Hoenicke. | 48 | ·····Maintainers:·Jochen_Hoenicke. |
72 | Copyright·©·1995–96·Jim·Nelson. | 49 | Copyright·©·1995–96·Jim·Nelson. |
73 | Copyright·©·2001–2014·Jochen_Hoenicke. | 50 | Copyright·©·2001–2014·Jochen_Hoenicke. |
74 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 51 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
75 | terms·described·in·the·License_section. | 52 | according·to·terms·described·in·the·License_section. |
76 | last·updated·Sat·May·16,·2015 | 53 | last·updated·Sat·May·16,·2015 |
Offset 114, 43 lines modified | Offset 114, 27 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 | 121 | <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">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-[·...·truncated·by·diffoscope;·len:·220,·SHA:·e5a7c322d181671814f71219bc400fbb8062367de1eb28c68790a00a59fb83ef·...·]</span>></span><br> | |
122 | <br> | 122 | <br> |
123 | ·this·line:·<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">"logo.gif"</span>></span><br> | ||
124 | ·becomes·this·after·processing:·<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">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | ||
126 | ·this·line:·<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">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·this·line:·<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">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
130 | ·remains·unchanged.<br> | ||
131 | </code></p> | 123 | </code></p> |
132 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
133 | <strong>BLOCKDEF</strong>·creates·block·<A | 125 | <strong>BLOCKDEF</strong>·creates·block·<A |
134 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 126 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
135 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 127 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
136 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 128 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
137 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 129 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
138 | in·the·block·macro·named·BLOCK. | 130 | in·the·block·macro·named·BLOCK. |
139 | <P>·For·example:</P> | 131 | <P>·For·example:</P> |
140 | ··<p><code> | 132 | ··<p><code> |
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">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>></span><br> | ||
141 | <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">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
142 | <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">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
143 | <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">name</span>></span><br> | ||
144 | <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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>></span><br> | ||
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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
146 | <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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
147 | <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">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
148 | <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">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
149 | <br> | ||
150 | </code></p> | 134 | </code></p> |
151 | <p> | 135 | <p> |
152 | All·block·metatags·have·the·implicit·option·<a | 136 | All·block·metatags·have·the·implicit·option·<a |
153 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 137 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
154 | of·the·block·before·the·definition·is·expanded. | 138 | of·the·block·before·the·definition·is·expanded. |
155 | </p> | 139 | </p> |
156 | <p> | 140 | <p> |
Offset 1, 53 lines modified | Offset 1, 37 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_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]INC·macroname1="increment1" | ||
5 | License····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················BLOCKDEF·creates·block·metatags,·which·is·a·fancy | ||
9 | ··ALTTEXT················way·of·saying·it·creates·new·block·tags.·A·block | ||
10 | ··BLOCK··················tag·is·a·tag·that·takes·a·whole·block·as | ||
11 | [>]·BLOCKDEF···············additional·parameter.·This·block·is·surrounded·by | ||
12 | ··DEF····················<tagname>·and·</tagname>.·The·contents·of·this | ||
13 | ··FILE···················block·are·automatically·stored·in·the·block·macro | ||
14 | ··IF·····················named·BLOCK. | ||
15 | ··INC····················For·example: | ||
16 | ··IMG···················· · ·<[[ref]]INC·i="1"·j="-1"> | ||
17 | ··IMAGEURL···············All·block·metatags·have·the·implicit·option | ||
18 | ··OPT····················EXPAND,·which·tells·htp·to·expand·the·contents·of | ||
4 | Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | ||
5 | Introduction | ||
6 | License······ ·this·line:·<[[ref]]img·src="logo.gif"> | ||
7 | Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
8 | Usage········logo"> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
11 | ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it | ||
12 | [>]·BLOCKDEF | ||
13 | ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
14 | ··FILE·····information!"> | ||
15 | ··IF······· ·remains·unchanged. | ||
16 | ··INC······*****·synopsis·***** | ||
17 | ··IMG······BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | ||
18 | ··IMAGEURL·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as | ||
19 | ··OPT······additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | ||
20 | ··OUTPUT···tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
21 | ··QUOTE····block·macro·named·BLOCK. | ||
22 | ··SET······For·example: | ||
23 | ··UNDEF····<[[ref]]file·execute="command-line"·(output="filename"·|·redirect) | ||
24 | ··UNSET····[noerror]> | ||
25 | ··USE,_$···<[[ref]]file·include="includefilename"·[parameters·...]> | ||
26 | ··WHILE····<[[ref]]file·name> | ||
27 | ··<!---····<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] | ||
28 | History······[precision=n]> | ||
29 | Wish_list····<[[ref]]file·[·name="filename"·]·time[·="format"·]> | ||
30 | Bugs·········<[[ref]]file·[·name="filename"·]·date[·="format"·]> | ||
31 | ···············<[[ref]]file·search="searchpath"> | ||
32 | ···············<[[ref]]file·template="templatefilename"> | ||
33 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | ||
34 | 19 | ··OUTPUT·················the·block·before·the·definition·is·expanded. | |
35 | ···············A·more·thorough·discussion·and·more·elaborat | 20 | ··QUOTE··················A·more·thorough·discussion·and·more·elaborate |
36 | ···············the·metatag·section. | ||
21 | ··SET····················examples·are·discussed·in·the·metatag·section. | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 57, 18 lines modified | Offset 41, 17 lines modified | ||
57 | page_source | 41 | page_source |
58 | htp_project | 42 | htp_project |
59 | htp_homepage | 43 | htp_homepage |
60 | hosted·by | 44 | hosted·by |
61 | Sourceforge | 45 | Sourceforge |
46 | HTML·coding·[Powered_by | ||
62 | HTML·coding | ||
63 | [Powered_by | ||
64 | htp] | 47 | htp] |
65 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 48 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
66 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 49 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
67 | ·····Maintainers:·Jochen_Hoenicke. | 50 | ·····Maintainers:·Jochen_Hoenicke. |
68 | Copyright·©·1995–96·Jim·Nelson. | 51 | Copyright·©·1995–96·Jim·Nelson. |
69 | Copyright·©·2001–2014·Jochen_Hoenicke. | 52 | Copyright·©·2001–2014·Jochen_Hoenicke. |
70 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 53 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
71 | terms·described·in·the·License_section. | 54 | according·to·terms·described·in·the·License_section. |
72 | last·updated·Sat·May·16,·2015 | 55 | last·updated·Sat·May·16,·2015 |
Offset 114, 48 lines modified | Offset 114, 46 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="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
121 | <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">"blockname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</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="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/BLOCK</a>></span><br> | ||
124 | <br> | 122 | <br> |
125 | </code></p> | 123 | </code></p> |
126 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
127 | <p> | 125 | <p> |
128 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 126 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
129 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 127 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
130 | Example: | 128 | Example: |
131 | </p> | 129 | </p> |
132 | ··<p><code> | 130 | ··<p><code> |
133 | | 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">"imghr"</span>></span><br> |
134 | · | 132 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">[·...·truncated·by·diffoscope;·len:·3,·SHA:·98089e6d36f78e9766c9ea34d5acb3611f3a92cd81c5eb102095d924ffc7d08b·...·]</span>></span><br> |
133 | · <span·class="htp-tag"><tr></span><br> | ||
134 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
135 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
136 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
137 | · <span·class="htp-tag"></tr></span><br> | ||
138 | · <span·class="htp-tag"></table></span><br> | ||
135 | | 139 | <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> |
136 | <br> | 140 | <br> |
141 | paragraph<br> | ||
137 | | 142 | <span·class="htp-tag"><imghr></span><br> |
138 | | 143 | paragraph<br> |
139 | </code></p> | 144 | </code></p> |
140 | <p> | 145 | <p> |
141 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 146 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
142 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 147 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
143 | like·this: | 148 | like·this: |
144 | </p> | 149 | </p> |
145 | ··<p><code> | 150 | ··<p><code> |
151 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
152 | · ·Last·modified·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
146 | ·<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> | ||
147 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><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"><<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> | ||
151 | · ·<span·class="htp-tag"></font></span><br> | ||
152 | ·<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> | ||
153 | <br> | ||
154 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
155 | </code></p> | 153 | </code></p> |
156 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 154 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
157 | reason·why·you·don't·want·to·include·this·block</p> | 155 | reason·why·you·don't·want·to·include·this·block</p> |
158 | <p> | 156 | <p> |
159 | </td> | 157 | </td> |
160 | </tr> | 158 | </tr> |
161 | <tr> | 159 | <tr> |
Offset 1, 42 lines modified | Offset 1, 39 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> | ||
5 | License····················text·block | ||
6 | Tutorial···················<[[ref]]/BLOCK> | ||
7 | Usage | ||
8 | HTP·Tags···················*****·synopsis·***** | ||
9 | ··ALTTEXT················This·is·a·simple·comment·that·is·not·included·in | ||
10 | ··BLOCK··················the·output.·This·is·useful·when·commenting | ||
11 | ··BLOCKDEF···············metatags,·since·the·metatags·do·not·appear·the | ||
12 | ··DEF····················output·either.·Example: | ||
13 | ··FILE··················· · ·<[[ref]]def·name="centered"> | ||
14 | ··IF····················· · ·<p·align=center> | ||
15 | ··INC···················· · ·<[[ref]]/def> | ||
16 | ··IMG | ||
17 | ··IMAGEURL··············· · ·<centered> | ||
18 | ··OPT···················· · ·This·text·is·centered. | ||
19 | ··OUTPUT·················Note·that·these·comments·should·not·include·<·or | ||
20 | 4 | Contents·······<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | |
5 | Introduction·[GLOBAL]> | ||
6 | License | ||
7 | Tutorial·····*****·synopsis·***** | ||
8 | Usage········This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is | ||
9 | HTP·Tags·····useful·when·commenting·metatags,·since·the·metatags·do·not·appear·the | ||
10 | ··ALTTEXT··output·either.·Example: | ||
11 | ··BLOCK···· <[[ref]]def·name="imghr"> | ||
12 | ··BLOCKDEF· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
13 | ··DEF······ · <tr> | ||
14 | ··FILE····· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
15 | ··IF······· · ·<td·width="95%"·background="midsep.png"> </td> | ||
16 | ··INC······ · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
17 | ··IMG······ · </tr> | ||
18 | ··IMAGEURL· · </table> | ||
19 | ··OPT······ <[[ref]]/def> | ||
20 | ··OUTPUT | ||
21 | ··QUOTE···· paragraph | ||
22 | ··SET······ <imghr> | ||
23 | ··UNDEF···· paragraph | ||
24 | ··UNSET····Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should | ||
21 | ··SE | 25 | ··USE,_$···not·use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like |
26 | ··WHILE····this: | ||
27 | [>]·<!---···· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
28 | History······ · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
29 | Wish_list····NAME="image.gif"·DATE> | ||
30 | Bugs·········Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason | ||
31 | ···············why·you·don't·want·to·include·this·block | ||
22 | ··UNDEF··················this: | ||
23 | ··UNSET·················· ·<[[ref]]def·name="bigfont"> | ||
24 | ··USE,_$················· · ·<font·size="+4"> | ||
25 | ··WHILE·················· ·<[[ref]]/def> | ||
26 | [>]·<!--- | ||
27 | History···················· ·<[[ref]]def·name="/bigfont"> | ||
28 | Wish_list·················· · ·</font> | ||
29 | Bugs······················· ·<[[ref]]/def> | ||
30 | ····························· ·<bigfont>Some·large·text</bigfont> | ||
31 | ·····························Make·sure·that·the·variable·is·never·defined·and | ||
32 | ·····························xyz·should·be·the·reason·why·you·don't·want·to | ||
33 | ·····························include·this·block | ||
Offset 54, 17 lines modified | Offset 51, 18 lines modified | ||
54 | page_source | 51 | page_source |
55 | htp_project | 52 | htp_project |
56 | htp_homepage | 53 | htp_homepage |
57 | hosted·by | 54 | hosted·by |
58 | Sourceforge | 55 | Sourceforge |
59 | HTML·coding | 56 | HTML·coding |
57 | [Powered_by | ||
60 | htp] | 58 | htp] |
61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
63 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
64 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
65 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
67 | 65 | terms·described·in·the·License_section. | |
68 | last·updated·Sat·May·16,·2015 | 66 | last·updated·Sat·May·16,·2015 |
Offset 114, 74 lines modified | Offset 114, 63 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="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
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">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>></span><br> | ||
122 | <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">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
123 | <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">name</span>></span><br> | ||
124 | <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <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">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <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">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
129 | <br> | 122 | <br> |
130 | </code></p> | 123 | </code></p> |
131 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
132 | <p> | 125 | <p> |
133 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 126 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
134 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 127 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
135 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 128 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
136 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 129 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
137 | For·example: | 130 | For·example: |
138 | </p> | 131 | </p> |
139 | ··<p><code> | 132 | ··<p><code> |
140 | <span·class="htp-tag"><<a·href=" | 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·class="htp-attrib">name</span>=<span·class="htp-string">"imghr"</span>></span><br> |
134 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
141 | · ·block·#1<br> | ||
142 | [<br> | ||
143 | <span·class="htp-tag"><ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
144 | · ·block·#2<br> | ||
145 | ...<br> | ||
146 | ]<br> | ||
147 | [<br> | ||
148 | <span·class="htp-tag">< | 135 | · <span·class="htp-tag"><tr></span><br> |
149 | · ·block·#3<br> | ||
150 | ]<br> | 136 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·c[·...·truncated·by·diffoscope;·len:·125,·SHA:·b047e95a1c67c151f2b0deffae5c4c3de9dd3fb1fa84f0c03d22c7c0e5038be0·...·]<br> |
137 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
138 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
139 | · <span·class="htp-tag"></tr></span><br> | ||
140 | · <span·class="htp-tag"></table></span><br> | ||
151 | <span·class="htp-tag"><<a·href=" | 141 | <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> |
152 | <br> | 142 | <br> |
143 | paragraph<br> | ||
144 | <span·class="htp-tag"><imghr></span><br> | ||
145 | paragraph<br> | ||
153 | </code></p> | 146 | </code></p> |
154 | <P> | 147 | <P> |
155 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 148 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
156 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 149 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
157 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 150 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
158 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 151 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
159 | tag·with·a·preceding·slash.·For·example: | 152 | tag·with·a·preceding·slash.·For·example: |
160 | </P> | 153 | </P> |
161 | ··<p><code> | 154 | ··<p><code> |
162 | · ·<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> | ||
163 | · · | 155 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</spa[·...·truncated·by·diffoscope;·len:·65,·SHA:·7e1df7e89c65642909c06c454c5f5ac8e9176f84ee88cb57aeb4343d5958991c·...·]<br> |
156 | · ·Last·modified·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
164 | </code></p> | 157 | </code></p> |
165 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 158 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
166 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 159 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
167 | <P> | 160 | <P> |
168 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 161 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
169 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 162 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
170 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 163 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
171 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 164 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
172 | </P> | 165 | </P> |
173 | ··<p><code> | 166 | ··<p><code> |
174 | <span·class="htp-tag"><<a·href=" | 167 | <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> |
168 | · ·block<br> | ||
175 | <span·class="htp-tag"><<a·href=" | 169 | <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> |
176 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
177 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
178 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
179 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
180 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
181 | <br> | 170 | <br> |
182 | </code></p> | 171 | </code></p> |
183 | <P> | 172 | <P> |
184 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 173 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
185 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 174 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
186 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 175 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
187 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 176 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
Offset 1, 92 lines modified | Offset 1, 71 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | ||
5 | Introduction·[GLOBAL]> | ||
6 | License | ||
7 | Tutorial·····*****·synopsis·***** | ||
4 | Introduction·······<[[ref]]file·execute="command-line"·(output="filename"·| | ||
5 | License············redirect)·[noerror]> | ||
6 | Tutorial···········<[[ref]]file·include="includefilename"·[parameters·...]> | ||
7 | Usage··············<[[ref]]file·name> | ||
8 | HTP·Tags···········<[[ref]]file·[·name="filename"·]·size[·= | ||
9 | ··ALTTEXT········(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
10 | ··BLOCK··········<[[ref]]file·[·name="filename"·]·time[·="format"·]> | ||
11 | ··BLOCKDEF·······<[[ref]]file·[·name="filename"·]·date[·="format"·]> | ||
12 | [>]·DEF············<[[ref]]file·search="searchpath"> | ||
13 | ··FILE···········<[[ref]]file·template="templatefilename"> | ||
14 | ··IF | ||
15 | ··INC············*****·synopsis·***** | ||
16 | | 8 | Usage········DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags. |
9 | HTP·Tags·····The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is | ||
17 | ··IMAGEURL·······creates·new·tags.·The·mechanism·is·very·similar·to·BLOCK | ||
18 | ··OPT············macros,·except·that·the·USE·tag·is·not·used·to·expand | ||
19 | ·· | 10 | ··ALTTEXT··not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name. |
20 | ·· | 11 | ··BLOCK····For·example: |
12 | ··BLOCKDEF· <[[ref]]def·name="imghr"> | ||
13 | [>]·DEF······ · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
14 | ··FILE····· · <tr> | ||
15 | ··IF······· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
16 | ··INC······ · ·<td·width="95%"·background="midsep.png"> </td> | ||
17 | ··IMG······ · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
18 | ··IMAGEURL· · </tr> | ||
19 | ··OPT······ · </table> | ||
20 | ··OUTPUT··· <[[ref]]/def> | ||
21 | ··QUOTE | ||
22 | ··SET······ paragraph | ||
23 | ··UNDEF···· <imghr> | ||
24 | ··UNSET···· paragraph | ||
25 | ··USE,_$···Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | ||
26 | ··WHILE····and | ||
27 | ··<!---····).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly | ||
28 | History······faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the | ||
29 | Wish_list····closing·tag·with·a·preceding·slash.·For·example: | ||
30 | Bugs········· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
31 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
32 | ···············NAME="image.gif"·DATE> | ||
33 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end | ||
34 | ···············tag.·It·is·not·that·slower. | ||
35 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a | ||
36 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. | ||
37 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space | ||
38 | ···············(which·therefore·requires·they·be·surrounded·by·quotes.) | ||
21 | 39 | ···············<[[ref]]WHILE·[NOT]·conditional> | |
22 | ··UNDEF·········· · ·block·#1 | ||
23 | ··UNSET··········[ | ||
24 | ··USE,_$·········<ELSEIF·[NOT]·conditional> | ||
25 | ··WHILE·········· · ·block·#2 | ||
26 | ··<!---··········... | ||
27 | History············] | ||
28 | Wish_list··········[ | ||
29 | Bugs···············<ELSE> | ||
30 | ··············· | 40 | ··············· · ·block |
31 | ·····················] | ||
32 | ··············· | 41 | ···············<[[ref]]/WHILE> |
33 | ·····················Some·metatags·will·require·an·opening·and·closing·tag | ||
34 | ·····················(comparable·to | ||
35 | ·····················and | ||
36 | ·····················).·In·this·case,·you·should·use·the·BLOCKDEF·macro. | ||
37 | ·····················Another·slightly·faster·alternative·is·to·use·two | ||
38 | ·····················metatags,·the·opening·tag·and·the·closing·tag·with·a | ||
39 | ·····················preceding·slash.·For·example: | ||
40 | ····················· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
41 | ·····················email="jnelson@crl.com"> | ||
42 | ····················· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
43 | ·····················You·should·really·use·BLOCKDEF,·though,·as·it·will·check | ||
44 | ·····················for·matching·end·tag.·It·is·not·that·slower. | ||
45 | ·····················Options·can·be·passed·to·a·metatag,·which·can·then·expand | ||
46 | ·····················as·if·it·were·a·SET·macro.·Option·names·are·parameterized | ||
47 | ·····················with·the·OPTION·attribute.·Multiple·options·can·be·listed | ||
48 | ·····················by·separating·their·name·with·a·space·(which·therefore | ||
49 | ·····················requires·they·be·surrounded·by·quotes.) | ||
50 | ·····················<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
51 | ·····················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
52 | ·····················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
53 | ·····················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
54 | ·····················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
55 | ·····················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
56 | ·····················<[[ref]]OPT·(XML|XML=FALSE)> | ||
57 | ··············· | 42 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
58 | ··············· | 43 | ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are |
44 | ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE | ||
59 | ·····················to·the·metatag·are·optional.·This·is·why·the·HEADERIMG | ||
60 | ·····················definition·uses·IF·to·verify·the·SIZE·option·is·defined | ||
61 | ················· | 45 | ···············option·is·defined·before·expanding·it·in·the·block.·If·a·parameter·is |
62 | ··············· | 46 | ···············required,·simply·expand·it·without·first·checking.·When·htp·expands·the |
47 | ···············metatag·and·the·macro·is·not·defined,·it·will·halt·processing·and | ||
48 | ···············complain·with·an·error·message·and·the·required·macro·name.·Normally·htp | ||
63 | ·····················htp·expands·the·metatag·and·the·macro·is·not·defined,·it | ||
64 | ·····················will·halt·processing·and·complain·with·an·error·message | ||
65 | ·····················and·the·required·macro·name.·Normally·htp·will·not·allow | ||
66 | ················· | 49 | ···············will·not·allow·parameters·not·listed·in·the·OPTION·attribute·to·be·added |
67 | ··············· | 50 | ···············to·the·tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail. |
51 | ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute.·However, | ||
52 | ···············there·is·the·special·option·*,·which·matches·every·other·parameter.·It | ||
68 | ·····················will·fail.·There·is·no·ALT·parameter·specified·in·the | ||
69 | ·····················OPTION·attribute.·However,·there·is·the·special·option·*, | ||
70 | ·····················which·matches·every·other·parameter.·It·should·be·used·to | ||
71 | ·················· | 53 | ···············should·be·used·to·pass·all·other·options·to·another·tag. |
72 | ··············· | 54 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open·and |
73 | ·····················both·open·and·close·tags·must·be·removed·with·UNDEF. | ||
74 | ·····················Removing·one·will·not·remove·both. | 55 | ···············close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not·remove·both. |
75 | ··············· | 56 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override·standard |
57 | ···············HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and·unexpected | ||
76 | ·····················override·standard·HTML·and·htp·tag·names,·as·this·can | ||
77 | ·····················cause·much·confusion·and·unexpected·results.·The·def·tag | ||
78 | ·················· | 58 | ···············results.·The·def·tag·can·even·be·used·to·override·its·own·tag·name. |
79 | ··············· | 59 | ···············Because·of·the·problems·this·can·cause,·its·highly·recommended·to·not |
80 | ··············· | 60 | ···············override·known·tag·names. |
81 | ··············· | 61 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the |
82 | ··············· | 62 | ···············tutorial. |
Max diff block lines reached; 658/9418 bytes (6.99%) of diff not shown. |
Offset 98, 24 lines modified | Offset 98, 29 lines modified | ||
98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> | 98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> |
99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to | 99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to |
100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of | 100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of |
101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value | 101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value |
102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when | 102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when |
103 | the·htp·tags·are·expanded:·</P> | 103 | the·htp·tags·are·expanded:·</P> |
104 | ··<p><code> | 104 | ··<p><code> |
105 | <font·size="-2"> 1.·</font> · | 105 | <font·size="-2"> 1.·</font> ·<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·class="htp-attrib">option</span>=<spa[·...·truncated·by·diffoscope;·len:·27,·SHA:·ff6b3fc09de12e94482d0ed1c68dc095608b5397eaef109f72de8ab61af7eb2e·...·]"</span>></span><br> |
106 | <font·size="-2"> 2.·</font> · <span·class="htp-tag"><h1></span><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><span·class="htp-tag"></h1></span><br> | ||
106 | <font·size="-2"> | 107 | <font·size="-2"> 3.·</font> · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> |
108 | <font·size="-2"> 4.·</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">block</span>></span><br> | ||
109 | <font·size="-2"> 5.·</font> · <span·class="htp-tag"></p></span><br> | ||
107 | <font·size="-2"> | 110 | <font·size="-2"> 6.·</font> ·<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> |
108 | <font·size="-2"> | 111 | <font·size="-2"> 7.·</font><br> |
112 | <font·size="-2"> 8.·</font> ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
113 | <font·size="-2"> 9.·</font> · ·This·is·a·fancy·section.<br> | ||
109 | <font·size="-2"> | 114 | <font·size="-2">10.·</font> ·<span·class="htp-tag"></section></span><br> |
110 | <font·size="-2"> 6.·</font> · ·This·text·is·centered.<br> | ||
111 | </code></p> | 115 | </code></p> |
112 | This·produces·the·following: | 116 | This·produces·the·following: |
113 | ··<p><code> | 117 | ··<p><code> |
114 | 118 | <span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·23,·SHA:·dc8fb40baa7554bb66dd29b6b5c9b4fcbd856689ffcb405afdb1dda8da223aef·...·]>></span><br> | |
119 | <br> | ||
115 | </code></p> | 120 | </code></p> |
116 | <P> | 121 | <P> |
117 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 122 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
118 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 123 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
119 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 124 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
120 | is·used,·while·the·contents·of·b·are·already·expanded. | 125 | is·used,·while·the·contents·of·b·are·already·expanded. |
121 | </P> | 126 | </P> |
Offset 1, 80 lines modified | Offset 1, 79 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·global·and·expand·****** | 2 | ******·htp·on-line·reference·:·global·and·expand·****** |
3 | Table_of_Contents······· | 3 | Table_of_Contents·······*****·The·global·attribute·***** |
4 | Introduction·········· | 4 | Introduction··········Normally·when·you·define·a·macro·it·is·only·defined·in |
5 | License··············· | 5 | License···············the·current·scope.·A·scope·is·for·example·the |
6 | Tutorial·············· | 6 | Tutorial··············definition·of·a·metatag.·Once·the·definition·is |
7 | Usage·················expanded·and·the·metatag·has·finished·the·macro·is | ||
8 | ··Command-line······automatically·removed.·In·some·cases·you·want·to | ||
9 | ··Options···········define·a·macro·inside·a·metatag·and·use·it·later.·You | ||
10 | ··Predefined_macros·can·do·this·with·the·global·attribute·that·you·can·add | ||
11 | [>]·global_and_expand·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def, | ||
7 | Usage······················definition·is·expanded·and·the·metatag·has | ||
8 | ··Command-line···········finished·the·macro·is·automatically·removed.·In | ||
9 | ··Options················some·cases·you·want·to·define·a·macro·inside·a | ||
10 | ··Predefined_macros······metatag·and·use·it·later.·You·can·do·this·with·the | ||
11 | [>]·global_and_expand······global·attribute·that·you·can·add·to·[[ref]]set,·[ | ||
12 | HTP_Tags···················[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[ | ||
13 | H | 12 | HTP_Tags··············and·[[ref]]blockdef·tags. |
14 | | 13 | History···············*****·The·expand·attribute·***** |
15 | | 14 | Wish_list·············The·expand·attribute·is·not·a·tag·of·its·own·but·is·an |
16 | 15 | Bugs··················attribute·of·all·block·tags·even·metatags·defined·with | |
17 | ························ | 16 | ························the·blockdef·macro.·Normally·htp·uses·a·lazy |
18 | ························ | 17 | ························evaluation·strategy,·i.e.·it·expands·htp·tags, |
19 | ························ | 18 | ························metatags·and·macros·when·the·HTML·document·is·written |
20 | ························ | 19 | ························not·when·they're·stored·into·block·macros.·When·you |
20 | ························use·a·macro·defined·with·the·blockdef·tag·the·html | ||
21 | ························code·between·the·tags·is·just·copied·literally·into | ||
21 | ·····························macros.·When·you·use·a·macro·defined·with·the | ||
22 | ·····························blockdef·tag·the·html·code·between·the·tags·is | ||
23 | ·····························just·copied·literally·into·the·macro·named·block, | ||
24 | ··························· | 22 | ························the·macro·named·block,·without·any·expansion·going·on. |
25 | ························ | 23 | ························However,·if·the·block·tag·is·marked·with·the·expand |
26 | ························ | 24 | ························modifier·it·is·expanded·immediately.·This·is·useful·if |
27 | ························ | 25 | ························you·want·to·store·something·in·a·block·macro,·that |
26 | ························depends·on·the·current·value·of·another·macro.·This | ||
27 | ························other·macro·may·no·longer·have·the·correct·value·when | ||
28 | ························the·macro·is·expanded.·Here·is·some·code·that | ||
28 | ·····························block·macro,·that·depends·on·the·current·value·of | ||
29 | ·····························another·macro.·This·other·macro·may·no·longer·have | ||
30 | ·····························the·correct·value·when·the·macro·is·expanded.·Here | ||
31 | ·····························is·some·code·that·demonstrate·when·the·htp·tags | ||
32 | ·····························are·expanded: | 29 | ························demonstrate·when·the·htp·tags·are·expanded: |
33 | ····························· 1. · ·<[[ref]]def·name="centered"> | ||
34 | ·························· | 30 | ························ 1. ·<[[ref]]blockdef·name="section"·option="title"> |
31 | ························ 2. · <h1><[[ref]]use·title></h1> | ||
32 | ························ 3. · <p·class="section"> | ||
33 | ························ 4. · · <[[ref]]use·block> | ||
34 | ························ 5. · </p> | ||
35 | ························ | 35 | ························ 6. ·<[[ref]]/blockdef> |
36 | ························ | 36 | ························ 7. |
37 | ····························· 5. · ·<centered> | ||
38 | ························ | 37 | ························ 8. ·<section·title="My·Section"> |
38 | ························ 9. · ·This·is·a·fancy·section. | ||
39 | ························10. ·</section> | ||
39 | ························ | 40 | ························This·produces·the·following: |
40 | ························ | 41 | ························<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> |
41 | ························ | 42 | ························When·block·a·and·block·b·are·defined·in·lines·2-7·the |
42 | ························ | 43 | ························contents·of·a·are·taken·literally,·however,·the |
44 | ························contents·for·b·are·already·expanded·so·the·macro·time | ||
45 | ························is·evaluated.·So·a·is·expanded·when·it·is·used,·while | ||
43 | ························ | 46 | ························the·contents·of·b·are·already·expanded. |
44 | ·····························macro·time·is·evaluated.·So·a·is·expanded·when·it | ||
45 | ·····························is·used,·while·the·contents·of·b·are·already | ||
46 | ·····························expanded. | ||
47 | ························ | 47 | ························In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the |
48 | ························ | 48 | ························noexpand·attribute·which·prevents·the·expansion·of·the |
49 | ························ | 49 | ························macro·value.·Here·it·is·used·to·show·you·what·the |
50 | ························ | 50 | ························value·of·the·block·macros·really·is. |
51 | ·····························is. | ||
52 | ························ | 51 | ························A·more·important·reason·to·use·the·noexpand·attribute |
53 | ························ | 52 | ························is·to·prevent·double·expansion·and·to·restore·the |
54 | ························ | 53 | ························original·lazy·expansion·policy·when·you·have·to·use |
55 | ························ | 54 | ························the·expand·attribute·as·for·block·d·in·the·example |
55 | ························above.·See·the·section·example·in·the·[[ref]]metatag | ||
56 | ························tutorial.·Rule·of·thumb:·The·use·tags·in·an·expanded | ||
56 | ·····························d·in·the·example·above.·See·the·section·example·in | ||
57 | ·····························the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The | ||
58 | ·····························use·tags·in·an·expanded·block·should·be·tagged | ||
59 | ··························· | 57 | ························block·should·be·tagged·with·noexpand. |
60 | page_source | 58 | page_source |
61 | htp_project | 59 | htp_project |
62 | htp_homepage | 60 | htp_homepage |
63 | hosted·by | 61 | hosted·by |
64 | Sourceforge | 62 | Sourceforge |
65 | HTML·coding·[Powered | 63 | HTML·coding·[Powered |
66 | htp] | 64 | by_htp] |
67 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 65 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
68 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 66 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
69 | ·····Maintainers:·Jochen_Hoenicke. | 67 | ·····Maintainers:·Jochen_Hoenicke. |
70 | Copyright·©·1995–96·Jim·Nelson. | 68 | Copyright·©·1995–96·Jim·Nelson. |
71 | Copyright·©·2001–2014·Jochen_Hoenicke. | 69 | Copyright·©·2001–2014·Jochen_Hoenicke. |
72 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 70 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
73 | according·to·terms·described·in·the·License_section. | 71 | according·to·terms·described·in·the·License_section. |
Offset 114, 49 lines modified | Offset 114, 46 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="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> | ||
122 | ·...<br> | ||
123 | 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> | ||
124 | </code></p> | 128 | </code></p> |
125 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
126 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 130 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
127 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 131 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
128 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 132 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
129 | added·to·the·output·file·as·well. | 133 | added·to·the·output·file·as·well. |
130 | <P> | 134 | <P> |
131 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 135 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
132 | following·is·perfectly·acceptable: | 136 | following·is·perfectly·acceptable: |
133 | ··<p><code> | 137 | ··<p><code> |
134 | 138 | <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">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>></span><br> | |
139 | <br> | ||
135 | </code></p> | 140 | </code></p> |
136 | <P> | 141 | <P> |
137 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 142 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
138 | <P> | 143 | <P> |
139 | To·include·information·about·another·file,·such·as·an·archive·file·or | 144 | To·include·information·about·another·file,·such·as·an·archive·file·or |
140 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 145 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
141 | type·of·information·to·be·displayed: | 146 | type·of·information·to·be·displayed: |
142 | ··<p><code> | 147 | ··<p><code> |
143 | <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">"imghr"</span>></span><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·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class[·...·truncated·by·diffoscope;·len:·23,·SHA:·3edfd466b9f105e847decd1952a2a1c1171e4e0209b2a3aec216925be8bb6c2d·...·]"</span>></span><br> |
149 | · ·<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">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
144 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
145 | · <span·class="htp-tag"><tr></span><br> | ||
146 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
147 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
148 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
149 | · <span·class="htp-tag"></tr></span><br> | ||
150 | · <span·class="htp-tag"></table></span><br> | ||
151 | <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 | ·<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> |
152 | <br> | 151 | <br> |
152 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
153 | paragraph<br> | ||
154 | <span·class="htp-tag"><imghr></span><br> | ||
155 | paragraph<br> | ||
156 | </code></p> | 153 | </code></p> |
157 | <P> | 154 | <P> |
158 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 155 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
159 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 156 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
160 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 157 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
161 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 158 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
162 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 159 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 185, 21 lines modified | Offset 182, 21 lines modified | ||
185 | <P> | 182 | <P> |
186 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 183 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
187 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 184 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
188 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 185 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
189 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 186 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
190 | available.··So: | 187 | available.··So: |
191 | ··<p><code> | 188 | ··<p><code> |
192 | ·<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">"bolditalic"</span>></span><br> | ||
193 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
194 | · ·<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"> | 189 | · ·<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> |
195 | 190 | <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> | |
191 | · ·<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> | ||
192 | · ·<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> | ||
193 | · · ·<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> | ||
194 | · ·<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> | ||
196 | ·<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> | 195 | ·<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> |
197 | <br> | ||
198 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
199 | </code></p> | 196 | </code></p> |
200 | <P> | 197 | <P> |
201 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 198 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
202 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 199 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
203 | second·statement·will·fail.) | 200 | second·statement·will·fail.) |
204 | <P> | 201 | <P> |
205 | <h3><a·name="template">TEMPLATE</a></h3> | 202 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 133 lines modified | Offset 1, 112 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction·······<[[ref]]if·disabled_because_xyz> | ||
5 | License············ ·... | ||
6 | Tutorial···········<[[ref]]/if> | ||
7 | 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·<[[ref]]use | ||
11 | ··BLOCK····time>. | ||
12 | ··BLOCKDEF·*****·synopsis·***** | ||
8 | | 13 | ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output |
14 | [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file | ||
9 | ··ALTTEXT········purpose.·The·output·file's·name,·the·current·date·and | ||
10 | ··BLOCK··········time,·and·the·contents·of·another·file·may·be·included. | ||
11 | ·· | 15 | ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
12 | ·· | 16 | ··INC······output·file·as·well. |
13 | | 17 | ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
14 | ··IF·············own·line,·so·the·following·is·perfectly·acceptable: | ||
15 | ··I | 18 | ··IMAGEURL·following·is·perfectly·acceptable: |
19 | ··OPT······<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
20 | ··OUTPUT···[GLOBAL]> | ||
21 | ··QUOTE | ||
16 | ·· | 22 | ··SET······****·NAME,·TIME,·SIZE·**** |
17 | ·· | 23 | ··UNDEF····To·include·information·about·another·file,·such·as·an·archive·file·or |
24 | ··UNSET····graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | ||
25 | ··USE,_$···type·of·information·to·be·displayed: | ||
26 | ··WHILE···· ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
27 | ··<!---···· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
28 | History······ ·<[[ref]]/def> | ||
29 | Wish_list | ||
30 | Bugs········· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
18 | ··OPT············archive·file·or·graphic·image,·specify·its·name·with·the | ||
19 | ··OUTPUT·········NAME·attribute·followed·by·the·type·of·information·to·be | ||
20 | ··QUOTE··········displayed: | ||
21 | ··SET············ <[[ref]]def·name="imghr"> | ||
22 | ··UNDEF·········· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
23 | ··UNSET·········· · <tr> | ||
24 | ··USE,_$········· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
25 | ··WHILE·········· · ·<td·width="95%"·background="midsep.png"> </td> | ||
26 | ··<!---·········· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
27 | History············ · </tr> | ||
28 | Wish_list·········· · </table> | ||
29 | Bugs··············· <[[ref]]/def> | ||
30 | ····················· paragraph | ||
31 | ····················· <imghr> | ||
32 | ····················· paragraph | ||
33 | ··············· | 31 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
32 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | ||
33 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of | ||
34 | ·····················dictates·how·the·information·is·displayed.·In·anything | ||
35 | ·····················other·than·byte·format,·the·information·is·displayed·in | ||
36 | ·····················floating-point·notation.·The·amount·of·precision·(the | ||
37 | ················ | 34 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be |
38 | ··············· | 35 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero |
36 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
39 | ·····················precision·is·zero·(0),·which·means·no·fractional·portion | ||
40 | ·····················is·displayed. | ||
41 | ··············· | 37 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept |
38 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
42 | ·····················attributes·will·now·accept·formatting·characters·that·are | ||
43 | ·····················passed·directly·into·the·ANSI·C·library·function.·This | ||
44 | ················ | 39 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually |
45 | ··············· | 40 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the |
41 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | ||
42 | ···············just·using·05:04:11·PM). | ||
46 | ·····················should·stick·to·the·default·format,·which·is·used·if·no | ||
47 | ·····················formatting·value·is·specified·(i.e.,·just·using·05:04:11 | ||
48 | ·····················PM). | ||
49 | ··············· | 43 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function |
44 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask | ||
50 | ·····················C·library·function·strftime()·for·information·on·how·to | ||
51 | ·····················build·a·format·string.·If·unsure,·ask·an·experienced·C | ||
52 | ················ | 45 | ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the |
53 | ··············· | 46 | ···············default·formatting. |
54 | ··············· | 47 | ···············****·INCLUDE·**** |
55 | ··············· | 48 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is |
49 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | ||
56 | ·····················resulting·text·is·incorporated·into·the·HTML·output·as·if | ||
57 | ·····················the·file·had·been·copied·into·the·source·at·the·same | ||
58 | ·················· | 50 | ···············source·at·the·same·location·as·the·FILE·markup·tag. |
59 | ··············· | 51 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the |
60 | ··············· | 52 | ···············operating·system's·directory·separator. |
61 | ··············· | 53 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
54 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros | ||
62 | ·····················which·are·interpreted·as·macros·that·are·"passed"·to·the | ||
63 | ·····················included·file.·The·macros·are·available·only·to·the | ||
64 | ··················· | 55 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
65 | ··············· | 56 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer |
66 | ··············· | 57 | ···············available.·So: |
58 | ··············· · ·<[[ref]]unset·email_addr> | ||
67 | ··············· | 59 | ···············<[[ref]]blockdef·name="section"> |
68 | ················· | 60 | ··············· · ·<[[ref]]inc·sect-ctr> |
61 | ··············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
62 | ··············· · · ·<[[ref]]use·block·noexpand> | ||
69 | ··············· | 63 | ··············· · ·<[[ref]]/block> |
70 | ····················· · ·</i></b> | ||
71 | ··············· | 64 | ··············· ·<[[ref]]/blockdef> |
72 | ····················· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
73 | ··············· | 65 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
66 | ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the | ||
67 | ···············second·statement·will·fail.) | ||
74 | ·····················inside·the·included·file.·They·are·not·available, | ||
75 | ·····················however,·past·the·tag·(which·is·why·the·second·statement | ||
76 | ·····················will·fail.) | ||
77 | ··············· | 68 | ···············****·TEMPLATE·**** |
78 | ··············· | 69 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is |
70 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input | ||
79 | ·····················file,·one·that·is·included·once·the·input·text·has·been | ||
80 | ·····················completely·processed.·So,·an·input·file·can·define·many | ||
81 | ·················· | 71 | ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a |
82 | ··············· | 72 | ···············template·file·to·form·a·consistent·page·layout. |
83 | ··············· | 73 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename |
74 | ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be | ||
84 | ·····················last·filename·specified·will·be·processed·by·htp.·If | ||
85 | ·····················multiple·template·files·need·to·be·included,·specify·one | ||
86 | ················· | 75 | ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to |
87 | ··············· | 76 | ···············branch·off. |
88 | ··············· | 77 | ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file. |
89 | ·····················default_file. | ||
Max diff block lines reached; 667/15738 bytes (4.24%) of diff not shown. |
Offset 114, 55 lines modified | Offset 114, 45 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=" | 121 | ·<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·class="htp-attrib">option</spa[·...·truncated·by·diffoscope;·len:·35,·SHA:·522b4fc484266d5aa22f655093d608107c1674273b0445ff5995f98cfb04a20a·...·]</span>></span><br> |
122 | · <span·class="htp-tag"><h1></span><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><span·class="htp-tag"></h1></span><br> | ||
123 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
124 | · · <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><br> | ||
125 | · <span·class="htp-tag"></p></span><br> | ||
126 | ·<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> | ||
122 | <br> | 127 | <br> |
128 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
129 | · ·This·is·a·fancy·section.<br> | ||
130 | ·<span·class="htp-tag"></section></span><br> | ||
131 | time·1.<br> | ||
132 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
133 | · ·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> | ||
123 | </code></p> | 134 | </code></p> |
124 | <h2>synopsis</h2> | 135 | <h2>synopsis</h2> |
125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 136 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 137 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 138 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 139 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
129 | string: | 140 | string: |
130 | ··<p><code> | 141 | ··<p><code> |
131 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
132 | 142 | <span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·17,·SHA:·caad84c8bc3777dc8199258e880f877b9b82b192a94413c7375c9beda919cf50·...·]</span>></span><br> | |
143 | <br> | ||
133 | </code></p> | 144 | </code></p> |
134 | <P> | 145 | <P> |
135 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 146 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
136 | <P> | 147 | <P> |
137 | ··<p><code> | 148 | ··<p><code> |
138 | ·<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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
139 | · ·<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> | ||
140 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></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><br> | ||
142 | · ·<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> | ||
143 | 149 | <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">macroname</span>></span><br> | |
150 | <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
144 | · ·<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> | ||
145 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
146 | · ·<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> | ||
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><br> | ||
148 | <br> | ||
149 | ·<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> | ||
150 | <br> | ||
151 | ·<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> | ||
152 | <br> | ||
153 | ·This·will·fail:<br> | ||
154 | ·<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> | ||
155 | <br> | 151 | <br> |
156 | ·Instead,·use·*·like·this:<br> | ||
157 | ·<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> | ||
158 | · ·<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> | ||
159 | ·<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> | ||
160 | · ·<br> | ||
161 | ·<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> | ||
162 | </code></p> | 152 | </code></p> |
163 | <P> | 153 | <P> |
164 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 154 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
165 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 155 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
166 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 156 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
167 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 157 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
168 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 158 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 52 lines modified | Offset 1, 41 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** | 2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | ||
5 | Introduction·[GLOBAL]> | ||
6 | License | ||
7 | 4 | Contents······· ·<[[ref]]blockdef·name="section"·option="title"> | |
5 | Introduction· · <h1><[[ref]]use·title></h1> | ||
6 | License······ · <p·class="section"> | ||
7 | Tutorial····· · · <[[ref]]use·block> | ||
8 | Usage········ · </p> | ||
9 | HTP·Tags····· ·<[[ref]]/blockdef> | ||
10 | ··ALTTEXT | ||
11 | ··BLOCK···· ·<section·title="My·Section"> | ||
12 | ··BLOCKDEF· · ·This·is·a·fancy·section. | ||
13 | ··DEF······ ·</section> | ||
14 | ··FILE·····time·1. | ||
15 | [>]·IF······· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
16 | ··INC······ · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
17 | ··IMG······time>. | ||
18 | ··IMAGEURL·*****·synopsis·***** | ||
8 | | 19 | ··OPT······IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
9 | | 20 | ··OUTPUT···processing.·The·basic·form·is·shown·above. |
10 | ·· | 21 | ··QUOTE····"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare |
11 | ·· | 22 | ··SET······operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string: |
23 | ··UNDEF····<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
24 | ··UNSET | ||
12 | ··BLOCKDEF· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
13 | ··DEF······ · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
14 | ··FILE·····NAME="image.gif"·DATE> | ||
15 | | 25 | ··USE,_$···and·a·defined·operator·is·a·test·of·a·macro's·existance: |
26 | ··WHILE····<[[ref]]unset·macroname> | ||
27 | ··<!---····<[[ref]]unset·macroname1·macroname2·...·> | ||
16 | ··INC······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
17 | ··IMG······ · ·<[[ref]]IF·size> | ||
18 | ··IMAGEURL· · · · ·<FONT·SIZE=${size}> | ||
19 | ··OPT······ · ·<[[ref]]/IF> | ||
20 | ··OUTPUT··· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
21 | ··QUOTE···· · ·<[[ref]]USE·title> | ||
22 | ··SET······ · ·<[[ref]]IF·size> | ||
23 | ··UNDEF···· · · · ·</FONT> | ||
24 | ··UNSET···· · ·<[[ref]]/IF> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE | ||
27 | ··<!---···· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
28 | History | 28 | History |
29 | Wish_list···· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
30 | Bugs | ||
31 | ··············· ·This·will·fail: | ||
32 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
33 | ··············· ·Instead,·use·*·like·this: | ||
34 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
35 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
36 | ··············· ·<[[ref]]/DEF> | ||
37 | ··············· · | ||
38 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
39 | 29 | Wish_list····If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | |
40 | 30 | Bugs·········conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to | |
41 | ···············t | 31 | ···············true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken |
42 | ··············· | 32 | ···············if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF |
43 | ···············tag | 33 | ···············tags·can·be·nested. |
Offset 72, 10 lines modified | Offset 61, 10 lines modified | ||
72 | [Powered_by | 61 | [Powered_by |
73 | htp] | 62 | htp] |
74 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 63 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
75 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 64 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
76 | ·····Maintainers:·Jochen_Hoenicke. | 65 | ·····Maintainers:·Jochen_Hoenicke. |
77 | Copyright·©·1995–96·Jim·Nelson. | 66 | Copyright·©·1995–96·Jim·Nelson. |
78 | Copyright·©·2001–2014·Jochen_Hoenicke. | 67 | Copyright·©·2001–2014·Jochen_Hoenicke. |
79 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 68 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
80 | 69 | described·in·the·License_section. | |
81 | last·updated·Sat·May·16,·2015 | 70 | last·updated·Sat·May·16,·2015 |
Offset 114, 23 lines modified | Offset 114, 16 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="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<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> | ||
122 | ast·updated·<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">TIME</span>></span>,·<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">DATE</span>></span><span·class="htp-tag"></EM></span><br> | ||
121 | ·<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> | ||
122 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
123 | ·<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> | ||
124 | <br> | ||
125 | ·<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> | ||
126 | · ·<span·class="htp-tag"></font></span><br> | ||
127 | ·<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> | ||
128 | <br> | ||
129 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
130 | </code></p> | 123 | </code></p> |
131 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
132 | <P> | 125 | <P> |
133 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 126 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
134 | file·system.··declares·an·URL·replacement·that·is·used·for | 127 | file·system.··declares·an·URL·replacement·that·is·used·for |
135 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 128 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
136 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 129 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 144, 15 lines modified | Offset 137, 16 lines modified | ||
144 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 137 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
145 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 138 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
146 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 139 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
147 | looked·up·in·the·current·directory.</P> | 140 | looked·up·in·the·current·directory.</P> |
148 | <P> | 141 | <P> |
149 | For·example:</P> | 142 | For·example:</P> |
150 | ··<p><code> | 143 | ··<p><code> |
151 | · ·<span·class="htp-tag"><<a·href="i | 144 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</spa[·...·truncated·by·diffoscope;·len:·65,·SHA:·7e1df7e89c65642909c06c454c5f5ac8e9176f84ee88cb57aeb4343d5958991c·...·]<br> |
145 | · ·Last·modified·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
152 | </code></p> | 146 | </code></p> |
153 | <P> | 147 | <P> |
154 | 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 |
155 | an·undefine,·and·is·removed.</P> | 149 | an·undefine,·and·is·removed.</P> |
156 | <P> | 150 | <P> |
157 | 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 |
158 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 152 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 51 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | ||
5 | Introduction·ast·updated·<[[ref]]FILE·TIME>,·<[[ref]]FILE·DATE></EM> | ||
6 | License······*****·synopsis·***** | ||
7 | Tutorial·····IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system. | ||
8 | Usage········declares·an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag. | ||
9 | HTP·Tags·····This·definitions·takes·effect·only·if·the·IMGXY·option·is·enabled. | ||
10 | ··ALTTEXT··Beacause·htp·can't·lookup·files·in·the·world·wide·web·you·have·to·map | ||
11 | ··BLOCK····absolute·image·URLs·to·a·directory·in·the·local·file·system. | ||
12 | ··BLOCKDEF·When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height | ||
4 | Introduction··············· ·<[[ref]]def·name="bigfont"> | ||
5 | License···················· · ·<font·size="+4"> | ||
6 | Tutorial··················· ·<[[ref]]/def> | ||
7 | Usage | ||
8 | HTP·Tags··················· ·<[[ref]]def·name="/bigfont"> | ||
9 | ··ALTTEXT················ · ·</font> | ||
10 | ··BLOCK·················· ·<[[ref]]/def> | ||
11 | ··BLOCKDEF | ||
12 | ··DEF···················· ·<bigfont>Some·large·text</bigfont> | ||
13 | ··FILE···················*****·synopsis·***** | ||
14 | ··IF·····················IMAGEURL·tells·htp,·where·to·find·images·on·the | ||
15 | ··INC····················local·file·system.·declares·an·URL·replacement | ||
16 | ··IMG····················that·is·used·for·size·lookups·in·any·IMG·tag.·This | ||
17 | [>]·IMAGEURL···············definitions·takes·effect·only·if·the·IMGXY·option | ||
18 | ··OPT····················is·enabled.·Beacause·htp·can't·lookup·files·in·the | ||
19 | ··OUTPUT·················world·wide·web·you·have·to·map·absolute·image·URLs | ||
20 | ··QUOTE··················to·a·directory·in·the·local·file·system. | ||
21 | ··SET····················When·an·IMG·tag·is·encountered·where·htp·has·to | ||
22 | ··UNDEF··················insert·width·and·height·the·defined·URL | ||
23 | ·· | 13 | ··DEF······the·defined·URL·replacements·will·be·taken·into·account·(later |
14 | ··FILE·····definitions·take·precedence·to·earlier):·For·each·defined·imageurl·it | ||
15 | ··IF·······checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute. | ||
16 | ··INC······If·it·matches·this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL | ||
17 | ··IMG······matches·the·SRC·is·considered·as·relative·link·and·looked·up·in·the | ||
18 | [>]·IMAGEURL·current·directory. | ||
19 | ··OPT······For·example: | ||
20 | ··OUTPUT··· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
21 | ··QUOTE···· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
22 | ··SET······NAME="image.gif"·DATE> | ||
23 | ··UNDEF····If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated | ||
24 | ··UNSET····as·an·undefine,·and·is·removed. | ||
25 | ··USE,_$···Since·you·usually·need·the·url·mapping·for·a·number·of·images·used | ||
26 | ··WHILE····throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | ||
27 | ··<!---····include_file·or·the·htp.def·file. | ||
28 | History······In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an | ||
29 | Wish_list····ALT_text·attribute·to·IMG·tags. | ||
30 | Bugs | ||
24 | ··USE,_$·················definitions·take·precedence·to·earlier):·For·each | ||
25 | ··WHILE··················defined·imageurl·it·checks·(case-insensitive)·if | ||
26 | ··<!---··················it·is·a·prefix·of·the·image's·SRC·attribute.·If·it | ||
27 | History····················matches·this·prefix·is·replaced·by·the·given·PATH. | ||
28 | Wish_list··················If·no·IMAGEURL·matches·the·SRC·is·considered·as | ||
29 | Bugs·······················relative·link·and·looked·up·in·the·current | ||
30 | ·····························directory. | ||
31 | ·····························For·example: | ||
32 | ····························· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | ||
33 | ·····························If·IMAGEURL·is·specified·with·a·URL·but·no·PATH | ||
34 | ·····························attribute,·it·is·treated·as·an·undefine,·and·is | ||
35 | ·····························removed. | ||
36 | ·····························Since·you·usually·need·the·url·mapping·for·a | ||
37 | ·····························number·of·images·used·throughout·a·set·of | ||
38 | ·····························documents,·IMAGEURL·is·most·appropriately·put·into | ||
39 | ·····························an·include_file·or·the·htp.def·file. | ||
40 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also | ||
41 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to | ||
42 | ·····························IMG·tags. | ||
Offset 62, 17 lines modified | Offset 49, 18 lines modified | ||
62 | page_source | 49 | page_source |
63 | htp_project | 50 | htp_project |
64 | htp_homepage | 51 | htp_homepage |
65 | hosted·by | 52 | hosted·by |
66 | Sourceforge | 53 | Sourceforge |
67 | HTML·coding | 54 | HTML·coding |
55 | [Powered_by | ||
68 | htp] | 56 | htp] |
69 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
70 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
71 | ·····Maintainers:·Jochen_Hoenicke. | 59 | ·····Maintainers:·Jochen_Hoenicke. |
72 | Copyright·©·1995–96·Jim·Nelson. | 60 | Copyright·©·1995–96·Jim·Nelson. |
73 | Copyright·©·2001–2014·Jochen_Hoenicke. | 61 | Copyright·©·2001–2014·Jochen_Hoenicke. |
74 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
75 | 63 | terms·described·in·the·License_section. | |
76 | last·updated·Sat·May·16,·2015 | 64 | last·updated·Sat·May·16,·2015 |
Offset 114, 16 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 | <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">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
122 | <br> | 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> | ||
123 | </code></p> | 128 | </code></p> |
124 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 130 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified |
126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage | 131 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage |
127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially | 132 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
128 | useful·if·the·image·may·change·frequently.·</P> | 133 | useful·if·the·image·may·change·frequently.·</P> |
129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 134 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 41 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMG·****** | 2 | ******·htp·on-line·reference·:·IMG·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]INC·macroname1="increment1" | ||
5 | License····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················img·is·a·standard·HTML·tag.·htp·can·add·the | ||
9 | ··ALTTEXT················specified·image's·width·and·height·to·the·tag | ||
10 | ··BLOCK··················automatically.·This·has·the·advantage·of·not | ||
11 | ··BLOCKDEF···············having·to·determine·each·image's·size·manually, | ||
12 | ··DEF····················which·is·especially·useful·if·the·image·may·change | ||
13 | ··FILE···················frequently. | ||
14 | ··IF·····················htp·adds·this·information·with·the·WIDTH·and | ||
15 | ··INC····················HEIGHT·markup·attributes.·If·htp·detects·these | ||
16 | [>]·IMG····················attributes·are·already·present·in·the·tag,·it·will | ||
17 | ··IMAGEURL···············not·modify·the·values.·If·htp·cannot·find·the | ||
18 | ··OPT····················image·file,·it·will·issue·a·warning·but·not·halt | ||
19 | 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·<[[ref]]use | ||
11 | ··BLOCK····time>. | ||
12 | ··BLOCKDEF·*****·synopsis·***** | ||
13 | ··DEF······img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and | ||
14 | ··FILE·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to | ||
15 | ··IF·······determine·each·image's·size·manually,·which·is·especially·useful·if·the | ||
16 | ··INC······image·may·change·frequently. | ||
17 | [>]·IMG······htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If | ||
18 | ··IMAGEURL·htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not | ||
19 | ··OPT······modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a | ||
20 | ··OUTPUT···warning·but·not·halt·processing. | ||
20 | ··QUOTE···· | 21 | ··QUOTE····At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network |
21 | ··SET····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG | ||
22 | ·· | 22 | ··SET······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. |
23 | ··UNDEF····The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds·this | ||
24 | ··UNSET····information·as·it·executes. | ||
25 | ··USE,_$···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the | ||
26 | ··WHILE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files. | ||
27 | ··<!---····htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT. | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
23 | ··UNSET··················The·IMGXY_and_NOIMGXY·options·control·whether·or | ||
24 | ··USE,_$·················not·htp·actually·adds·this·information·as·it | ||
25 | ··WHILE··················executes. | ||
26 | ··<!---··················Since·htp·is·able·to·lookup·files·only·in·the | ||
27 | History····················local·filesystem,·the·IMAGEURL·tag·may·be·used·to | ||
28 | Wish_list··················map·URLs·to·local·files. | ||
29 | Bugs·······················htp·can·also·add·default·ALT·text·to·IMG·tags | ||
30 | ·····························using·ALTTEXT. | ||
Offset 50, 17 lines modified | Offset 47, 18 lines modified | ||
50 | page_source | 47 | page_source |
51 | htp_project | 48 | htp_project |
52 | htp_homepage | 49 | htp_homepage |
53 | hosted·by | 50 | hosted·by |
54 | Sourceforge | 51 | Sourceforge |
55 | HTML·coding | 52 | HTML·coding |
53 | [Powered_by | ||
56 | htp] | 54 | htp] |
57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
59 | ·····Maintainers:·Jochen_Hoenicke. | 57 | ·····Maintainers:·Jochen_Hoenicke. |
60 | Copyright·©·1995–96·Jim·Nelson. | 58 | Copyright·©·1995–96·Jim·Nelson. |
61 | Copyright·©·2001–2014·Jochen_Hoenicke. | 59 | Copyright·©·2001–2014·Jochen_Hoenicke. |
62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
63 | 61 | described·in·the·License_section. | |
64 | last·updated·Sat·May·16,·2015 | 62 | last·updated·Sat·May·16,·2015 |
Offset 114, 37 lines modified | Offset 114, 43 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 | | 121 | <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">"imghr"</span>></span><br> |
122 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
123 | · <span·class="htp-tag"><tr></span><br> | ||
124 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
125 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
126 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
127 | · <span·class="htp-tag"></tr></span><br> | ||
128 | · <span·class="htp-tag"></table></span><br> | ||
129 | <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> | ||
130 | <br> | ||
131 | paragraph<br> | ||
132 | <span·class="htp-tag"><imghr></span><br> | ||
133 | paragraph<br> | ||
122 | </code></p> | 134 | </code></p> |
123 | <h2>synopsis</h2> | 135 | <h2>synopsis</h2> |
124 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 136 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
125 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 137 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
126 | <P> | 138 | <P> |
127 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 139 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
128 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 140 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
129 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 141 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
130 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 142 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
131 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 143 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
132 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 144 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
133 | <P> | 145 | <P> |
134 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 146 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
135 | ··<p><code> | 147 | ··<p><code> |
148 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
149 | · ·Last·modified·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
136 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
137 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
138 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
139 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
140 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
141 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
142 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
143 | <br> | ||
144 | </code></p> | 150 | </code></p> |
145 | <p> | 151 | <p> |
146 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 152 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
147 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 153 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
148 | values·are·limited·to·the·range·-2^31..2^31. | 154 | values·are·limited·to·the·range·-2^31..2^31. |
149 | <P> | 155 | <P> |
150 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 156 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 42 lines modified | Offset 1, 43 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | ||
5 | License····················*****·synopsis·***** | ||
6 | Tutorial···················The·INC·can·be·used·for·incrementing/decrementing | ||
7 | Usage······················a·variable·or·for·variable·addition.·The·basic | ||
8 | HTP·Tags···················form·is·shown·above. | ||
9 | ··ALTTEXT················The·"increment"·is·anything·that·evaluates·to·a | ||
10 | ··BLOCK··················integer.·It·can·be·a·literal·string·or·a·macro | ||
11 | 4 | Contents······· <[[ref]]def·name="imghr"> | |
5 | Introduction· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
6 | License······ · <tr> | ||
7 | Tutorial····· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
8 | Usage········ · ·<td·width="95%"·background="midsep.png"> </td> | ||
9 | HTP·Tags····· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
10 | ··ALTTEXT·· · </tr> | ||
11 | ··BLOCK···· · </table> | ||
12 | ··BLOCKDEF· <[[ref]]/def> | ||
13 | ··DEF | ||
14 | ··FILE····· paragraph | ||
15 | ··IF······· <imghr> | ||
16 | [>]·INC······ paragraph | ||
17 | ··IMG······*****·synopsis·***** | ||
18 | ··IMAGEURL·The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for | ||
19 | ··OPT······variable·addition.·The·basic·form·is·shown·above. | ||
20 | ··OUTPUT···The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a | ||
21 | ··QUOTE····literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname | ||
12 | ·· | 22 | ··SET······must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the |
23 | ··UNDEF····increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is | ||
24 | ··UNSET····that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value·and | ||
25 | ··USE,_$···its·increment. | ||
13 | ··FILE···················integer.·If·the·increment·is·ommitted·it·defaults | ||
14 | ··IF·····················to·1.·The·effect·of·this·operation·is·that·the | ||
15 | [>]·INC····················macro·is·redefined·to·contain·the·sum·of·its | ||
16 | ··IMG····················previous·value·and·its·increment. | ||
17 | ·· | 26 | ··WHILE····To·increment·or·decrement·a·variable·you·can·use·this·form: |
27 | ··<!---···· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
28 | History······ · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
29 | Wish_list····NAME="image.gif"·DATE> | ||
30 | Bugs·········Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may | ||
18 | ··OPT····················this·form: | ||
19 | ··OUTPUT·················<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
20 | ··QUOTE··················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
21 | ··SET····················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
22 | ··UNDEF··················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
23 | ··UNSET··················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
24 | ··USE,_$·················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
25 | ··WHILE··················<[[ref]]OPT·(XML|XML=FALSE)> | ||
26 | ··<!--- | ||
27 | History····················Note·that·INC·doesn't·check·if·the·strings·really | ||
28 | Wish_list··················denote·integers.·It·may·give·weired·results·when | ||
29 | 31 | ···············give·weired·results·when·used·on·arbitrary·strings.·The·integer·values | |
30 | ··············· | 32 | ···············are·limited·to·the·range·-2^31..2^31. |
33 | ···············Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The | ||
31 | ·····························Note·further·that·htp·wasn't·designed·to·do | ||
32 | ·····························extensive·calculations.·The·INC·tag·is·useful·in | ||
33 | ················· | 34 | ···············INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined |
34 | ··············· | 35 | ···············blocks. |
Offset 54, 17 lines modified | Offset 55, 18 lines modified | ||
54 | page_source | 55 | page_source |
55 | htp_project | 56 | htp_project |
56 | htp_homepage | 57 | htp_homepage |
57 | hosted·by | 58 | hosted·by |
58 | Sourceforge | 59 | Sourceforge |
59 | HTML·coding | 60 | HTML·coding |
61 | [Powered_by | ||
60 | htp] | 62 | htp] |
61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 63 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 64 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
63 | ·····Maintainers:·Jochen_Hoenicke. | 65 | ·····Maintainers:·Jochen_Hoenicke. |
64 | Copyright·©·1995–96·Jim·Nelson. | 66 | Copyright·©·1995–96·Jim·Nelson. |
65 | Copyright·©·2001–2014·Jochen_Hoenicke. | 67 | Copyright·©·2001–2014·Jochen_Hoenicke. |
66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 68 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
67 | 69 | terms·described·in·the·License_section. | |
68 | last·updated·Sat·May·16,·2015 | 70 | last·updated·Sat·May·16,·2015 |
Offset 88, 38 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="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
95 | <font·size="-2"> 1.·</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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
96 | <font·size="-2"> 2.·</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> | ||
97 | <font·size="-2"> 3.·</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> | ||
98 | <font·size="-2"> 4.·</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> | ||
99 | <font·size="-2"> 5.·</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> | ||
100 | <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">title</span>></span><br> | ||
101 | <font·size="-2"> 7.·</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> | ||
102 | <font·size="-2"> 8.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
103 | <font·size="-2"> 9.·</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> | ||
104 | <font·size="-2">10.·</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> | ||
105 | <font·size="-2"> | 96 | <font·size="-2"> 2.·</font><br> |
106 | <font·size="-2">12.·</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> | ||
107 | <font·size="-2">13.·</font><br> | ||
108 | <font·size="-2">14.·</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> | ||
109 | <font·size="-2">15.·</font><br> | ||
110 | <font·size="-2">16.·</font> ·This·will·fail:<br> | ||
111 | <font·size="-2">17.·</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> | ||
112 | <font·size="-2">18.·</font><br> | ||
113 | <font·size="-2">19.·</font> ·Instead,·use·*·like·this:<br> | ||
114 | <font·size="-2">20.·</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> | ||
115 | <font·size="-2">21.·</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> | ||
116 | <font·size="-2">22.·</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> | ||
117 | <font·size="-2">23.·</font> · ·<br> | ||
118 | <font·size="-2">24.·</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> | ||
119 | </code></p> | 97 | </code></p> |
120 | <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. |
121 | 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. |
122 | 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 |
123 | <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 |
124 | 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 |
125 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 103 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 129, 41 lines modified | Offset 107, 41 lines modified | ||
129 | file</a>.··</p> | 107 | file</a>.··</p> |
130 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 108 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
131 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp | 109 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
132 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 110 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
133 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 111 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
134 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 112 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
135 | ··<p><code> | 113 | ··<p><code> |
136 | <font·size="-2"> 1.·</font><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="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
137 | <font·size="-2"> 2.·</font>text·block<br> | ||
138 | <font·size="-2"> | 114 | <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">macroname</span>></span><br> |
115 | <font·size="-2"> 2.·</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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
139 | <font·size="-2"> | 116 | <font·size="-2"> 3.·</font><br> |
140 | </code></p> | 117 | </code></p> |
141 | <h2>Using·parameters</h2> | 118 | <h2>Using·parameters</h2> |
142 | <p>·More·sophisticated·tags·accept·parameters.··The | 119 | <p>·More·sophisticated·tags·accept·parameters.··The |
143 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 120 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
144 | named·and·expanded·inside·the·<code>def</code>·or | 121 | named·and·expanded·inside·the·<code>def</code>·or |
145 | <code>blockdef</code>·block:·</p> | 122 | <code>blockdef</code>·block:·</p> |
146 | ··<p><code> | 123 | ··<p><code> |
124 | <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">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
125 | <font·size="-2"> 2.·</font> · ·block<br> | ||
147 | <font·size="-2"> | 126 | <font·size="-2"> 3.·</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> |
148 | <font·size="-2"> 2.·</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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
149 | <font·size="-2"> | 127 | <font·size="-2"> 4.·</font><br> |
150 | </code></p> | 128 | </code></p> |
151 | <h2>Saving·blocks·for·later</h2> | 129 | <h2>Saving·blocks·for·later</h2> |
152 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 130 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
153 | the·template·file.··The·normal·htp·files·should·just·define·macros | 131 | the·template·file.··The·normal·htp·files·should·just·define·macros |
154 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 132 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
155 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 133 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
156 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 134 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
157 | do·this:</p> | 135 | do·this:</p> |
158 | ··<p><code> | 136 | ··<p><code> |
159 | <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"> | 137 | <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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
160 | <font·size="-2"> 2.·</font> · · | 138 | <font·size="-2"> 2.·</font> · ·...<br> |
139 | <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> | ||
161 | <font·size="-2"> | 140 | <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> |
162 | <font·size="-2"> 4.·</font><br> | ||
163 | </code></p> | 141 | </code></p> |
164 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 142 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
165 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 143 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
166 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 144 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
167 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 145 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
168 | 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 | 146 | 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 |
169 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 147 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 182, 15 lines modified | Offset 160, 15 lines modified | ||
182 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 160 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
183 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 161 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
184 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 162 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
185 | use·expand·in·a·block·around·it.</p> | 163 | use·expand·in·a·block·around·it.</p> |
186 | <p>To·close·this·example·we·show·how·to·expand·the | 164 | <p>To·close·this·example·we·show·how·to·expand·the |
187 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 165 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
188 | ··<p><code> | 166 | ··<p><code> |
189 | <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"> | 167 | <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> |
190 | <font·size="-2"> 2.·</font> · ·...<br> | 168 | <font·size="-2"> 2.·</font> · ·...<br> |
191 | <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> | 169 | <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> |
192 | <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> | 170 | <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> |
193 | </code></p> | 171 | </code></p> |
194 | <p> | 172 | <p> |
195 | 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 | 173 | 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 |
196 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 174 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
Offset 1, 134 lines modified | Offset 1, 136 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of········*****·Programming·your·own·tags·***** | 3 | Table_of_Contents············*****·Programming·your·own·tags·***** |
4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define | ||
5 | Introduction·· | 4 | Introduction···············Metatags·allow·for·defining·your·own·HTML-like |
5 | License····················tags.·When·you·define·a·metatag·you·have·to | ||
6 | Tutorial···················provide·the·HTML·code·which·it·abbreviates.·In | ||
6 | | 7 | ··Macros·················fact·metatags·are·just·like·block·macros,·but·they |
8 | ··Including··············have·a·nicer·syntax.·With·metatags·you·can·expand | ||
9 | ··Templates··············htp's·functionality. | ||
10 | ··Files··················Metatags·are·defined·with·the·[[ref]]def·and·[ | ||
11 | [>]·Metatags···············[ref]]blockdef·tags·and·undefined·with·the·[ | ||
12 | Usage······················[ref]]undef·tag. | ||
13 | HTP_Tags···················As·an·example·we·show·how·to·define·a·tag·that | ||
14 | History····················builds·a·fancy·horizontal·rule·out·of·several | ||
15 | Wish_list··················images. | ||
16 | Bugs······················· 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
17 | ····························· 2. | ||
7 | Tutorial······syntax.·With·metatags·you·can·expand·htp's·functionality. | ||
8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and | ||
9 | ··Including·undefined·with·the·[[ref]]undef·tag. | ||
10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy | ||
11 | ··Files·····horizontal·rule·out·of·several·images. | ||
12 | [>]·Metatags·· 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
13 | Usage········· 2. · ·<[[ref]]IF·size> | ||
14 | HTP_Tags······ 3. · · · ·<FONT·SIZE=${size}> | ||
15 | History······· 4. · ·<[[ref]]/IF> | ||
16 | Wish_list····· 5. · ·<[[ref]]IMG·SRC=pics/${src}> | ||
17 | Bugs·········· 6. · ·<[[ref]]USE·title> | ||
18 | ················ 7. · ·<[[ref]]IF·size> | ||
19 | ················ 8. · · · ·</FONT> | ||
20 | ················ 9. · ·<[[ref]]/IF> | ||
21 | ················10. ·<[[ref]]/DEF> | ||
22 | ················11. | ||
23 | ················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
24 | ················13. | ||
25 | ················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
26 | ················15. | ||
27 | ················16. ·This·will·fail: | ||
28 | ················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
29 | ················18. | ||
30 | ················19. ·Instead,·use·*·like·this: | ||
31 | ················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
32 | ················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
33 | ················22. ·<[[ref]]/DEF> | ||
34 | ················23. · | ||
35 | ················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
36 | ················In·line·1·of·the·above·example·a·new·tag·na | 18 | ·····························In·line·1·of·the·above·example·a·new·tag·named |
37 | ················ | 19 | ·····························imghr·is·defined.·The·html·code·which·implements |
20 | ·····························this·rule·is·following·in·lines·2-8.·between·the·[ | ||
38 | ················ | 21 | ·····························[ref]]def_and_/def·tags.·You·don't·have·to |
39 | ················ | 22 | ·····························understand·this·html·code,·but·you·should |
23 | ·····························understand·that·this·is·just·pure·html·to·draw·the | ||
40 | ················ | 24 | ·····························fancy·rule.·Every·time·you·write·<imghr>·as·in |
41 | ················ | 25 | ·····························line·12·htp·will·replace·this·tag·with·the |
26 | ·····························corresponding·html·code.·To·make·metatags | ||
42 | ················ | 27 | ·····························available·to·all·htp·documents·in·your·project, |
43 | ················in·a·common·[[ref]]include_file. | 28 | ·····························place·them·in·a·common·[[ref]]include_file. |
44 | ················Often·you·want·to·define·tags·that·have·an·ope | 29 | ·····························Often·you·want·to·define·tags·that·have·an·opening |
45 | ················ | 30 | ·····························and·a·closing·variant.·For·this·purpose·you·should |
31 | ·····························use·the·[[ref]]blockdef·tag.·When·htp·encounters·a | ||
46 | ················ | 32 | ·····························blockdef·tag·it·will·automatically·search·for·the |
47 | ················ | 33 | ·····························matching·closing·tag·and·put·everything·between |
34 | ·····························these·tags·in·a·block·macro·named·block.·Here·is | ||
35 | ·····························an·example·for·this. | ||
48 | ················block·macro·named·block.·Here·is·an·example·for·this. | ||
49 | ················ 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
50 | ················ 2.text·block | ||
51 | ················ 3.<[[ref]]/OUTPUT> | ||
52 | ················ 4. | ||
53 | ················*****·Using·parameters·***** | ||
54 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets | ||
55 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or | ||
56 | ················blockdef·block: | ||
57 | ················ 1.<[[ref]]unset·macroname> | 36 | ····························· 1.<[[ref]]unset·macroname> |
58 | ················ 2.<[[ref]]unset·macroname1·macroname2·...·> | 37 | ····························· 2.<[[ref]]unset·macroname1·macroname2·...·> |
38 | ····························· 3. | ||
39 | ·····························*****·Using·parameters·***** | ||
40 | ·····························More·sophisticated·tags·accept·parameters.·The | ||
41 | ·····························option·parameter·lets·multiple·metatag·parameters | ||
42 | ·····························be·named·and·expanded·inside·the·def·or·blockdef | ||
43 | ·····························block: | ||
59 | ················ 3. | ||
60 | ················*****·Saving·blocks·for·later·***** | ||
61 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the | ||
62 | ················template·file.·The·normal·htp·files·should·just·define·macros·that | ||
63 | ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags | ||
64 | ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is | ||
65 | ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | ||
66 | ················do·this: | ||
67 | ················ 1.<[[ref]]WHILE·[NOT]·conditional> | 44 | ····························· 1.<[[ref]]WHILE·[NOT]·conditional> |
68 | ················ 2. · ·block | 45 | ····························· 2. · ·block |
69 | ················ 3.<[[ref]]/WHILE> | 46 | ····························· 3.<[[ref]]/WHILE> |
47 | ····························· 4. | ||
48 | ·····························*****·Saving·blocks·for·later·***** | ||
49 | ·····························When·you·are·using·templates,·the·html·should·only | ||
50 | ·····························be·written·by·the·template·file.·The·normal·htp | ||
51 | ·····························files·should·just·define·macros·that·are·used | ||
52 | ·····························later·in·the·template.·So·you·may·want·to·write | ||
53 | ·····························block·tags·that·just·save·the·block·in·a·macro·for | ||
54 | ·····························later·use.·Although·this·is·possible·with·htp·it | ||
55 | ·····························is·quite·tricky,·so·here·we·present·the·way·to·do | ||
56 | ·····························this: | ||
70 | ················ 4. | ||
71 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter | ||
72 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every | ||
73 | ················section·(line·3)·and·then·the·block·macro·name·is·build·from·this | ||
74 | ················counter.·So·the·first·section·is·stored·in·block·sect-1,·the·second | ||
75 | ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells·htp·that | ||
76 | ················these·macros·should·be·defined·globally·for·the·remaining·run. | ||
77 | ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section·macro. | ||
78 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and | ||
79 | ················5.·Normally·when·you·define·a·block·macro·the·code·between·the·start | ||
80 | ················and·end·tag·is·literally·copied·into·the·macro·value.·The·expansion | ||
81 | ················takes·place·when·the·macro·is·used.·In·this·case·that·doesn't·make | ||
82 | ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·just·contain·the | ||
83 | ················same·value,·namely·<use·block>·and·block·wouldn't·be·defined·anymore | ||
84 | ················when·the·macros·are·finally·expanded.·Therefore·we·use·expand·to | ||
85 | ················expand·the·use·tag·already·when·sect-1·is·defined. | ||
86 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and | ||
87 | ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it, | ||
88 | ················it·would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it | ||
89 | ················later·in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand | ||
90 | ················whenever·you·use·expand·in·a·block·around·it. | ||
91 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr} | ||
92 | ················blocks·in·the·template: | ||
Max diff block lines reached; 650/15501 bytes (4.19%) of diff not shown. |
Offset 114, 15 lines modified | Offset 114, 16 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=" | 121 | · ·File·image.gif·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</spa[·...·truncated·by·diffoscope;·len:·65,·SHA:·7e1df7e89c65642909c06c454c5f5ac8e9176f84ee88cb57aeb4343d5958991c·...·]<br> |
122 | · ·Last·modified·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<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">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
122 | </code></p> | 123 | </code></p> |
123 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
124 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 125 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
125 | options·inside·the·actual·document·being·processed.··The·options·are | 126 | options·inside·the·actual·document·being·processed.··The·options·are |
126 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 127 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
127 | preceded·by·a·‘-’·character. | 128 | preceded·by·a·‘-’·character. |
128 | <P> | 129 | <P> |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OPT·****** | 2 | ******·htp·on-line·reference·:·OPT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
5 | 4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | |
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | Tutorial·····*****·synopsis·***** | ||
6 | | 8 | Usage········OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the |
7 | | 9 | HTP·Tags·····actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be |
8 | | 10 | ··ALTTEXT··on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. |
9 | | 11 | ··BLOCK····Click·here·for·more_information_on_using_customization_options_with_htp. |
10 | ··ALTTEXT | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF | 12 | ··BLOCKDEF |
13 | ··DEF | 13 | ··DEF |
14 | ··FILE | 14 | ··FILE |
15 | ··IF | 15 | ··IF |
16 | ··INC | 16 | ··INC |
17 | ··IMG | 17 | ··IMG |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
Offset 25, 14 lines modified | Offset 25, 15 lines modified | ||
25 | ··UNSET | 25 | ··UNSET |
26 | ··USE,_$ | 26 | ··USE,_$ |
27 | ··WHILE | 27 | ··WHILE |
28 | ··<!--- | 28 | ··<!--- |
29 | History | 29 | History |
30 | Wish_list | 30 | Wish_list |
31 | Bugs | 31 | Bugs |
32 | page_source | 32 | page_source |
33 | htp_project | 33 | htp_project |
34 | htp_homepage | 34 | htp_homepage |
35 | hosted·by | 35 | hosted·by |
36 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding | 37 | HTML·coding |
38 | [Powered_by | 38 | [Powered_by |
Offset 114, 16 lines modified | Offset 114, 38 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=" | 121 | ·<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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span[·...·truncated·by·diffoscope;·len:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</span>></span><br> |
122 | · ·<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> | ||
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<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> | ||
125 | · ·<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> | ||
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">title</span>></span><br> | ||
127 | · ·<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> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<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> | ||
130 | ·<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> | ||
122 | <br> | 131 | <br> |
132 | ·<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> | ||
133 | <br> | ||
134 | ·<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> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<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> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<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> | ||
141 | · ·<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> | ||
142 | ·<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> | ||
143 | · ·<br> | ||
144 | ·<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> | ||
123 | </code></p> | 145 | </code></p> |
124 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
125 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 147 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
126 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 148 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
127 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 149 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
128 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 150 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
129 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text | 151 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text |
Offset 1, 53 lines modified | Offset 1, 74 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | License | ||
6 | Tutorial···················*****·synopsis·***** | ||
7 | Usage······················The·OUTPUT·tag·can·be·used·to·create·auxillary | ||
8 | HTP·Tags···················files·besides·the·main·HTML·file.·The·text·between | ||
9 | ··ALTTEXT················this·tag·and·the·corresponding·</OUTPUT>·tag·is | ||
10 | ··BLOCK··················written·to·output·file. | ||
11 | ··BLOCKDEF···············Normally·the·outputfile·is·cleared·before·writing | ||
12 | ··DEF····················to·it,·but·you·can·use·the·APPEND·attribute·to | ||
13 | ··FILE···················extend·an·existing·file.·The·text·written·to·the | ||
14 | ··IF·····················file·is·normally·not·expanded,·i.e.·all·tags | ||
15 | ··INC····················inside·this·block·are·not·executed·but·written | ||
16 | ··IMG····················unmodified·to·the·file.·However,·you·can·use·the | ||
17 | ··IMAGEURL···············EXPAND·attribute·to·override·this·behaviour. | ||
18 | ··OPT | ||
19 | [ | 4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | [>]·OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
20 | ··QUOTE | 21 | ··QUOTE |
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | | 22 | ··SET······ ·Instead,·use·*·like·this: |
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····The·OUTPUT·tag·can·be·used·to·create·auxillary·files·besides·the | ||
30 | Bugs·········main·HTML·file.·The·text·between·this·tag·and·the·corresponding·</ | ||
31 | ···············OUTPUT>·tag·is·written·to·output·file. | ||
32 | ···············Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | ||
33 | ···············can·use·the·APPEND·attribute·to·extend·an·existing·file.·The·text | ||
34 | ···············written·to·the·file·is·normally·not·expanded,·i.e.·all·tags·inside | ||
35 | ···············this·block·are·not·executed·but·written·unmodified·to·the·file. | ||
36 | ···············However,·you·can·use·the·EXPAND·attribute·to·override·this | ||
37 | ···············behaviour. | ||
30 | page_source | 38 | page_source |
31 | htp_project | 39 | htp_project |
32 | htp_homepage | 40 | htp_homepage |
33 | hosted·by | 41 | hosted·by |
34 | Sourceforge | 42 | Sourceforge |
35 | HTML·coding | 43 | HTML·coding |
44 | [Powered_by | ||
36 | htp] | 45 | htp] |
37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 46 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 47 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
39 | ·····Maintainers:·Jochen_Hoenicke. | 48 | ·····Maintainers:·Jochen_Hoenicke. |
40 | Copyright·©·1995–96·Jim·Nelson. | 49 | Copyright·©·1995–96·Jim·Nelson. |
41 | Copyright·©·2001–2014·Jochen_Hoenicke. | 50 | Copyright·©·2001–2014·Jochen_Hoenicke. |
42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 51 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
43 | 52 | to·terms·described·in·the·License_section. | |
44 | last·updated·Sat·May·16,·2015 | 53 | last·updated·Sat·May·16,·2015 |
Offset 117, 14 lines modified | Offset 117, 38 lines modified | ||
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="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> | 121 | <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 | <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> | 122 | <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 | <br> | 123 | <br> |
124 | <br> | ||
125 | · ·<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> | ||
126 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
127 | · ·<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> | ||
128 | · ·<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> | ||
129 | · ·<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> | ||
130 | · ·<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> | ||
131 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
132 | · ·<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> | ||
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"><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> | ||
136 | <br> | ||
137 | ·<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> | ||
138 | <br> | ||
139 | ·This·will·fail:<br> | ||
140 | ·<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> | ||
141 | <br> | ||
142 | ·Instead,·use·*·like·this:<br> | ||
143 | ·<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> | ||
144 | · ·<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> | ||
145 | ·<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> | ||
146 | · ·<br> | ||
147 | ·<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> | ||
124 | </code></p> | 148 | </code></p> |
125 | <h2>synopsis</h2> | 149 | <h2>synopsis</h2> |
126 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 150 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
127 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 151 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
128 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 152 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
129 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 153 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
130 | done·inside·a·quote·block. | 154 | done·inside·a·quote·block. |
Offset 1, 49 lines modified | Offset 1, 73 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | 4 | Contents·······<[[ref]]UNDEF·tagname> | |
5 | Introduction·<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | License | ||
6 | Tutorial | 7 | Tutorial |
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would | ||
9 | ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful | ||
10 | ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block | ||
11 | ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained | ||
12 | ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done | ||
13 | ··FILE···················inside·a·quote·block. | ||
14 | ··IF | ||
15 | ··I | 8 | Usage········ · ·<[[ref]]IF·size> |
9 | HTP·Tags····· · · · ·<FONT·SIZE=${size}> | ||
10 | ··ALTTEXT·· · ·<[[ref]]/IF> | ||
11 | ··BLOCK···· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
12 | ··BLOCKDEF· · ·<[[ref]]USE·title> | ||
13 | ··DEF······ · ·<[[ref]]IF·size> | ||
14 | ··FILE····· · · · ·</FONT> | ||
15 | ··IF······· · ·<[[ref]]/IF> | ||
16 | ··INC······ ·<[[ref]]/DEF> | ||
16 | ··IMG | 17 | ··IMG |
17 | ··IMAGEURL | 18 | ··IMAGEURL· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> |
18 | ··OPT | 19 | ··OPT |
19 | ··OUTPUT | 20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
20 | [>]·QUOTE | 21 | [>]·QUOTE |
21 | ··SET | ||
22 | ·· | 22 | ··SET······ ·This·will·fail: |
23 | ··UNDEF···· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
23 | ··UNSET | 24 | ··UNSET |
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | | 25 | ··USE,_$··· ·Instead,·use·*·like·this: |
26 | ··WHILE···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
27 | ··<!---···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
28 | History······ ·<[[ref]]/DEF> | ||
29 | Wish_list···· · | ||
30 | Bugs········· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
31 | ···············*****·synopsis·***** | ||
32 | ···············QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be·interpreted | ||
33 | ···············by·HTP.·It·may·be·useful·in·conjunction·with·a·surrounding | ||
34 | ···············EXPANDed·block·to·prevent·early·expansion·of·some·contained | ||
35 | ···············blocks.·Note·that·'$'·evaluation·is·still·done·inside·a·quote | ||
36 | ···············block. | ||
30 | page_source | 37 | page_source |
31 | htp_project | 38 | htp_project |
32 | htp_homepage | 39 | htp_homepage |
33 | hosted·by | 40 | hosted·by |
34 | Sourceforge | 41 | Sourceforge |
35 | HTML·coding | 42 | HTML·coding |
43 | [Powered_by | ||
36 | htp] | 44 | htp] |
37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 45 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 46 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
39 | ·····Maintainers:·Jochen_Hoenicke. | 47 | ·····Maintainers:·Jochen_Hoenicke. |
40 | Copyright·©·1995–96·Jim·Nelson. | 48 | Copyright·©·1995–96·Jim·Nelson. |
41 | Copyright·©·2001–2014·Jochen_Hoenicke. | 49 | Copyright·©·2001–2014·Jochen_Hoenicke. |
42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 50 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
43 | 51 | to·terms·described·in·the·License_section. | |
44 | last·updated·Sat·May·16,·2015 | 52 | last·updated·Sat·May·16,·2015 |
Offset 114, 26 lines modified | Offset 114, 29 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="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">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
122 | · ·<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">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
123 | 121 | <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">macroname</span>></span><br> | |
122 | <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
124 | <br> | 123 | <br> |
125 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
126 | </code></p> | 124 | </code></p> |
127 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
128 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
129 | anywhere·in·the·HTML·document.··To·create·a·macro: | 127 | anywhere·in·the·HTML·document.··To·create·a·macro: |
130 | ··<p><code> | 128 | ··<p><code> |
131 | <span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
132 | <br> | 129 | · ·<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> |
130 | <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> | ||
131 | · ·<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> | ||
132 | · ·<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> | ||
133 | · · ·<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> | ||
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><br> | ||
135 | ·<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> | ||
133 | </code></p> | 136 | </code></p> |
134 | <P> | 137 | <P> |
135 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 138 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
136 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 139 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
137 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 140 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
138 | <A·HREF="use.html">'$'</A>·operator. | 141 | <A·HREF="use.html">'$'</A>·operator. |
139 | <P> | 142 | <P> |
Offset 1, 38 lines modified | Offset 1, 43 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
3 | Table_of | 3 | Table_of_Contents····*****·syntax·***** |
4 | Introduction·······<[[ref]]unset·macroname> | ||
5 | License············<[[ref]]unset·macroname1·macroname2·...·> | ||
4 | Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
5 | Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
6 | License······ ·<[[ref]]/def> | ||
7 | Tutorial | 6 | Tutorial |
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
9 | | 7 | Usage··············*****·synopsis·***** |
10 | | 8 | HTP·Tags···········SET·creates·a·macro·definition·that·can·later·be·expanded |
11 | ·· | 9 | ··ALTTEXT········anywhere·in·the·HTML·document.·To·create·a·macro: |
12 | ··BLOCKDEF·<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
13 | ·· | 10 | ··BLOCK·········· · ·<[[ref]]unset·email_addr> |
11 | ··BLOCKDEF·······<[[ref]]blockdef·name="section"> | ||
12 | ··DEF············ · ·<[[ref]]inc·sect-ctr> | ||
13 | ··FILE··········· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
14 | ··IF············· · · ·<[[ref]]use·block·noexpand> | ||
15 | ··INC············ · ·<[[ref]]/block> | ||
16 | ··IMG············ ·<[[ref]]/blockdef> | ||
14 | ·· | 17 | ··IMAGEURL·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE |
15 | ·· | 18 | ··OPT············tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into |
16 | ··INC······text).·If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use | ||
17 | ·· | 19 | ··OUTPUT·········the·regular·text).·If·the·macro·needs·to·be·expanded |
20 | ··QUOTE··········inside·a·markup·tag,·use·the·'$'·operator. | ||
18 | | 21 | [>]·SET············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as |
19 | ·· | 22 | ··UNDEF··········the·second·syntax·line·shows. |
20 | ·· | 23 | ··UNSET··········SET·should·only·be·used·for·a·single·line's·worth·of·text. |
21 | ·· | 24 | ··USE,_$·········Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The |
22 | [>]·SET······also·useful·if·the·macro·contains·a·quotation·character·and·you | ||
23 | ·· | 25 | ··WHILE··········BLOCK·tag·is·also·useful·if·the·macro·contains·a·quotation |
26 | ··<!---··········character·and·you·don't·want·to·fool·around·with·special | ||
27 | History············escape·characters. | ||
24 | | 28 | Wish_list··········Macros·can·be·redefined·by·using·another·SET·command·with |
25 | ··USE,_$···same·macro·name.·The·prior·definition·will·be·destroyed,·however. | ||
26 | ··WHILE····Also,·the·macro·can·be·removed·(destroyed)·with·the·UNSET·tag. | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | 29 | Bugs···············the·same·macro·name.·The·prior·definition·will·be |
30 | ·····················destroyed,·however.·Also,·the·macro·can·be·removed | ||
31 | ·····················(destroyed)·with·the·UNSET·tag. | ||
Offset 47, 17 lines modified | Offset 52, 16 lines modified | ||
47 | page_source | 52 | page_source |
48 | htp_project | 53 | htp_project |
49 | htp_homepage | 54 | htp_homepage |
50 | hosted·by | 55 | hosted·by |
51 | Sourceforge | 56 | Sourceforge |
52 | HTML·coding | 57 | HTML·coding |
53 | [Powered_by | 58 | [Powered_by_htp] |
54 | htp] | ||
55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
57 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
58 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
59 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
61 | to·terms·described·in·the·License_section. | 65 | according·to·terms·described·in·the·License_section. |
62 | last·updated·Sat·May·16,·2015 | 66 | last·updated·Sat·May·16,·2015 |
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·Sat· | 23 | ··last·updated·Sat·Feb·08,·2025 |
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·Sat· | 8 | last·updated·Sat·Feb·08,·2025 |
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·Sat· | 12 | last·updated·Sat·Feb·08,·2025 |
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·Sat· | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sat·Feb·08,·2025 |
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·Sat· | 20 | ··last·updated·Sat·Feb·08,·2025 |
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·Sat· | 6 | last·updated·Sat·Feb·08,·2025 |
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·Sat· | 20 | ··last·updated·Sat·Feb·08,·2025 |
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·Sat· | 6 | last·updated·Sat·Feb·08,·2025 |
Offset 114, 21 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> | ||
121 | ·<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> | ||
122 | ·<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> | ||
123 | · ·<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> | ||
124 | · ·<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> | ||
125 | · · ·<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> | ||
126 | · ·<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> | ||
127 | 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> | ||
128 | </code></p> | 125 | </code></p> |
129 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
130 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 127 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
131 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 128 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
132 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 129 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
133 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 130 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
134 | htp·until·it·is·reassigned.··</P> | 131 | htp·until·it·is·reassigned.··</P> |
Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNDEF·****** | 2 | ******·htp·on-line·reference·:·UNDEF·****** |
3 | Table_of_Contents····*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]WHILE·[NOT]·conditional> | ||
5 | License···················· · ·block | ||
6 | Tutorial···················<[[ref]]/WHILE> | ||
7 | Usage | ||
8 | HTP·Tags···················*****·synopsis·***** | ||
4 | Introduction······· ·<[[ref]]set·sect-ctr="0"> | ||
5 | License············ ·<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
11 | ··BLOCKDEF·······*****·synopsis·***** | ||
12 | ·· | 9 | ··ALTTEXT················UNDEF·removes·a·metatag·definition.·Metatags |
13 | ··FILE···········DEF·and·BLOCKDEF·can·be·removed·with·the·UNDEF·command. | ||
14 | ·· | 10 | ··BLOCK··················created·by·DEF·and·BLOCKDEF·can·be·removed·with |
11 | ··BLOCKDEF···············the·UNDEF·command.·Once·removed,·the·metatag·will | ||
12 | ··DEF····················no·longer·be·recognized·by·htp·until·it·is | ||
15 | ··I | 13 | ··FILE···················reassigned. |
16 | ··I | 14 | ··IF·····················Multiple·metatags·can·be·removed·by·placing·each |
17 | ··I | 15 | ··INC····················name·as·an·attribute. |
16 | ··IMG | ||
17 | ··IMAGEURL | ||
18 | ··OPT | 18 | ··OPT |
19 | ··OUTPUT | 19 | ··OUTPUT |
20 | ··QUOTE | 20 | ··QUOTE |
21 | ··SET | 21 | ··SET |
22 | [>]·UNDEF | 22 | [>]·UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
Offset 30, 23 lines modified | Offset 30, 21 lines modified | ||
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 | ||
37 | [Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | ||
38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
40 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
41 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
42 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
44 | according·to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
Offset 114, 40 lines modified | Offset 114, 32 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> | ||
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">"header.hti"</span>></span><br> | ||
122 | ·<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">"1"</span>></span><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·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
124 | · ·<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> | ||
125 | · ·<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> | ||
126 | 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> | |
127 | < | 124 | <br> |
128 | </code></p> | 125 | </code></p> |
129 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
130 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 127 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
131 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
132 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
133 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
134 | old·macro·definition·will·be·removed·automatically.) | 131 | old·macro·definition·will·be·removed·automatically.) |
135 | <P> | 132 | <P> |
136 | For·example: | 133 | For·example: |
137 | ··<p><code> | 134 | ··<p><code> |
135 | ·<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">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
136 | · ·...<br> | ||
138 | <span·class="htp-tag"><<a·href=" | 137 | · ·<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> |
139 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
140 | <span·class="htp-tag"><<a·href=" | 138 | ·<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> |
141 | <br> | ||
142 | <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">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
143 | <br> | ||
144 | This·works:· · ·<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">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
145 | But·this·fails:·<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">email</span>></span><br> | ||
146 | And·this·fails:·<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">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
147 | </code></p> | 139 | </code></p> |
148 | <P> | 140 | <P> |
149 | More·than·one·macro·may·be·removed·in·the·same·tag: | 141 | More·than·one·macro·may·be·removed·in·the·same·tag: |
150 | ··<p><code> | 142 | ··<p><code> |
151 | ·<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 | ·<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> |
152 | · ·...<br> | 144 | · ·...<br> |
153 | · ·<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="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> |
Offset 1, 45 lines modified | Offset 1, 37 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_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]WHILE·[NOT]·conditional> | ||
5 | License···················· · ·block | ||
6 | Tutorial···················<[[ref]]/WHILE> | ||
7 | Usage | ||
8 | HTP·Tags···················*****·synopsis·***** | ||
9 | ··ALTTEXT················UNSET·removes·(or·deletes)·a·macro·and·it's | ||
10 | ··BLOCK··················definition.·The·macro·is·subsequently·not | ||
11 | ··BLOCKDEF···············available·for·use·in·the·pre-processed·files. | ||
4 | Contents··········<[[ref]]file·include="header.hti"> | ||
5 | Introduction···· ·<[[ref]]set·sect-ctr="1"> | ||
6 | License········· ·<[[ref]]while·sect-${sect-ctr}> | ||
7 | Tutorial········ · ·<[[ref]]use·sect-${sect-ctr}> | ||
8 | Usage··········· · ·<[[ref]]inc·sect-ctr> | ||
9 | HTP·Tags········ ·<[[ref]]/while> | ||
10 | ··ALTTEXT·····<[[ref]]file·include="footer.hti"> | ||
11 | ··BLOCK·······*****·synopsis·***** | ||
12 | ··BLOCKDEF····UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The | ||
13 | ··DEF·········macro·is·subsequently·not·available·for·use·in·the·pre- | ||
14 | ·· | 12 | ··DEF····················(Note·that·simply·redefining·the·macro·with |
15 | ··I | 13 | ··FILE···················another·SET·or·BLOCK·definition·with·the·same·name |
16 | ··I | 14 | ··IF·····················is·acceptable.·The·old·macro·definition·will·be |
15 | ··INC····················removed·automatically.) | ||
16 | ··IMG····················For·example: | ||
17 | ··IMAGEURL··············· ·<[[ref]]WHILE·NOT·i="10"> | ||
17 | ··IMG·········automatically.) | ||
18 | ··IMAGEURL····For·example: | ||
19 | ··OPT·········<[[ref]]block·stuff> | ||
20 | ··OUTPUT······ ·<a·href=$email>send·email</a> | ||
21 | ··QUOTE·······<[[ref]]/block> | ||
22 | ··SET | ||
23 | ··UNDEF·······<[[ref]]set·morestuff=$email> | ||
24 | [>]·UNSET | ||
25 | ··USE,_$······This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
26 | ··WHILE·······But·this·fails:·<[[ref]]use·email> | ||
27 | ··<!---·······And·this·fails:·<[[ref]]use·morestuff | ||
28 | History·········email="jnelson@crl.com"> | ||
29 | Wish_list·······More·than·one·macro·may·be·removed·in·the·same·tag: | ||
30 | Bugs············ ·<[[ref]]WHILE·sect-$i> | ||
31 | ·················· · ·... | 18 | ··OPT···················· · ·... |
32 | ·················· · ·<[[ref]]INC·i> | 19 | ··OUTPUT················· · ·<[[ref]]INC·i> |
33 | ·················· ·<[[ref]]/WHILE> | 20 | ··QUOTE·················· ·<[[ref]]/WHILE> |
21 | ··SET····················More·than·one·macro·may·be·removed·in·the·same | ||
22 | ··UNDEF··················tag: | ||
23 | [>]·UNSET·················· ·<[[ref]]WHILE·sect-$i> | ||
24 | ··USE,_$················· · ·... | ||
25 | ··WHILE·················· · ·<[[ref]]INC·i> | ||
26 | ··<!---·················· ·<[[ref]]/WHILE> | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 54, 16 lines modified | Offset 46, 16 lines modified | ||
54 | page_source | 46 | page_source |
55 | htp_project | 47 | htp_project |
56 | htp_homepage | 48 | htp_homepage |
57 | hosted·by | 49 | hosted·by |
58 | Sourceforge | 50 | Sourceforge |
59 | HTML·coding | ||
60 | [Powered_by | 51 | HTML·coding·[Powered_by |
52 | htp] | ||
61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
63 | ·····Maintainers:·Jochen_Hoenicke. | 55 | ·····Maintainers:·Jochen_Hoenicke. |
64 | Copyright·©·1995–96·Jim·Nelson. | 56 | Copyright·©·1995–96·Jim·Nelson. |
65 | Copyright·©·2001–2014·Jochen_Hoenicke. | 57 | Copyright·©·2001–2014·Jochen_Hoenicke. |
66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
67 | according·to·terms·described·in·the·License_section. | 59 | according·to·terms·described·in·the·License_section. |
Offset 114, 18 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 | ·<span·class="htp-tag"><<a·href=" | 121 | · ·<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> |
122 |   | 122 | <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> |
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 123 | · ·<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> |
124 | · ·<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> | ||
125 | · · ·<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> | ||
126 | · ·<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> | ||
124 | ·<span·class="htp-tag"><<a·href=" | 127 | ·<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> |
125 | </code></p> | 128 | </code></p> |
126 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 130 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 131 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 132 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
130 | markup·tags. | 133 | markup·tags. |
131 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 134 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 135, 15 lines modified | Offset 138, 15 lines modified | ||
135 | attribute·to·prevent·further·expansion.··</p> | 138 | attribute·to·prevent·further·expansion.··</p> |
136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 139 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
137 | for·the·expanded·macro.··This·is·only·valid·for·<A | 140 | for·the·expanded·macro.··This·is·only·valid·for·<A |
138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 141 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 142 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
140 | example:</p> | 143 | example:</p> |
141 | ··<p><code> | 144 | ··<p><code> |
142 | <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">s | 145 | <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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
143 | <font·size="-2"> 2.·</font> · ·...<br> | 146 | <font·size="-2"> 2.·</font> · ·...<br> |
144 | <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> | 147 | <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> |
145 | <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> | 148 | <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> |
146 | </code></p> | 149 | </code></p> |
147 | <P> | 150 | <P> |
148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 151 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
149 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 152 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
Offset 157, 16 lines modified | Offset 160, 18 lines modified | ||
157 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 160 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
158 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 161 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
159 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 162 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
160 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 163 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
161 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 164 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
162 | processing·the·contents. | 165 | processing·the·contents. |
163 | ··<p><code> | 166 | ··<p><code> |
164 | <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> | ||
165 | <font·size="-2"> | 167 | <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> |
168 | <font·size="-2"> 2.·</font> · ·...<br> | ||
169 | <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> | ||
170 | <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> | ||
166 | </code></p> | 171 | </code></p> |
167 | <P> | 172 | <P> |
168 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 173 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
169 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 174 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
170 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 175 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
171 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 176 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
172 | and·"_"·that·follows·it. | 177 | and·"_"·that·follows·it. |
Offset 1, 68 lines modified | Offset 1, 76 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of | 3 | Table_of_Contents····*****·syntax·***** |
4 | Contents······· ·<[[ref]]WHILE·NOT·i="10"> | ||
5 | Introduction· · ·... | ||
6 | License······ · ·<[[ref]]INC·i> | ||
7 | | 4 | Introduction······· · ·<[[ref]]unset·email_addr> |
5 | License············<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
8 | | 11 | ··BLOCKDEF·······*****·synopsis·***** |
9 | | 12 | ··DEF············USE·will·expand·macros·that·have·been·previously·declared |
10 | ·· | 13 | ··FILE···········with·either·SET·or·BLOCK.·USE·can·only·be·used·outside·of |
11 | ·· | 14 | ··IF·············other·markup·tags. |
12 | ·· | 15 | ··INC············If·you·USE·a·block·macro·the·value·of·expanded·block |
13 | ··DEF······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for | ||
14 | ··FILE·····example,·if·the·use·is·inside·a·block·which·expands·itself.·You | ||
15 | ··I | 16 | ··IMG············macros·will·be·further·parsed·by·htp.·This·is·maybe·not |
17 | ··IMAGEURL·······what·you·want,·for·example,·if·the·use·is·inside·a·block | ||
18 | ··OPT············which·expands·itself.·You·can·use·the·noexpand·attribute | ||
19 | ··OUTPUT·········to·prevent·further·expansion. | ||
16 | ·· | 20 | ··QUOTE··········USE·will·accept·additional·parameters,·which·are·"local" |
17 | ·· | 21 | ··SET············macros·for·the·expanded·macro.·This·is·only·valid·for |
18 | ··IMAGEURL·Macros·created·using·SET·cannot·have·parameters·passed.·For | ||
19 | ··OPT······example: | ||
20 | ··OUTPUT··· 1. ·<[[ref]]WHILE·sect-$i> | ||
21 | ·· | 22 | ··UNDEF··········BLOCK·macros.·Macros·created·using·SET·cannot·have |
23 | ··UNSET··········parameters·passed.·For·example: | ||
24 | [>]·USE,_$········· 1. ·<[[ref]]WHILE·NOT·i="10"> | ||
25 | ··WHILE·········· 2. · ·... | ||
22 | ·· | 26 | ··<!---·········· 3. · ·<[[ref]]INC·i> |
23 | | 27 | History············ 4. ·<[[ref]]/WHILE> |
24 | | 28 | Wish_list··········(See·below·for·a·description·of·the·'$'·operator.)·The |
25 | [>]·USE,_$···on·line·7·works·because·"stuff"·has·been·declared·as·a·block | ||
26 | ··WHILE····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff" | ||
27 | ··<!---····macro.·Line·8·fails·because·the·"email"·macro·is·unavailable | ||
28 | History······once·the·block·macro·is·completely·expanded,·and·cannot·be | ||
29 | | 29 | Bugs···············example·on·line·7·works·because·"stuff"·has·been·declared |
30 | ·····················as·a·block·macro,·and·the·tag·is·passing·the·"email"·macro | ||
31 | ·····················to·the·"stuff"·macro.·Line·8·fails·because·the·"email" | ||
32 | ·····················macro·is·unavailable·once·the·block·macro·is·completely | ||
33 | ·····················expanded,·and·cannot·be·passed·to·a·SET·macro. | ||
30 | 34 | ·····················Note·that·the·"email"·macro·is·available·to·other·macros | |
31 | ···············included·files·called·within·the·"stuff"·block. | 35 | ·····················or·included·files·called·within·the·"stuff"·block. |
32 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·othe | 36 | ·····················Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other |
33 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 37 | ·····················standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
34 | ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not | ||
35 | ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it | ||
36 | ···············replaces·the·macro·name·by·the·contents·of·the·macro·without | ||
37 | ···············further·processing·the·contents. | ||
38 | ··············· 1.<a·href="mailto:$email">mailto·hyperlink</a> | ||
39 | ··············· | 38 | ·····················The·'$'·should·be·immediately·followed·by·the·macro·name, |
39 | ·····················which·may·or·may·not·be·surrounded·by·curly·braces.·When | ||
40 | ·····················htp·encounters·this·it·replaces·the·macro·name·by·the | ||
41 | ·····················contents·of·the·macro·without·further·processing·the | ||
42 | ·····················contents. | ||
43 | ····················· 1. ·<[[ref]]WHILE·sect-$i> | ||
44 | ····················· 2. · ·... | ||
45 | ····················· 3. · ·<[[ref]]INC·i> | ||
46 | ····················· 4. ·<[[ref]]/WHILE> | ||
40 | ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more | 47 | ·····················The·use·of·curly·braces·is·encouraged,·since·it·is·more |
41 | ···············and·should·never·cause·confusion·with·surrounding | 48 | ·····················robust·and·should·never·cause·confusion·with·surrounding |
42 | ···············curly·braces·are·used·the·macro·name·consi | 49 | ·····················text.·If·no·curly·braces·are·used·the·macro·name·consists |
43 | ···············punctuation·character·or·the·maximum | 50 | ·····················either·of·a·single·punctuation·character·or·the·maximum |
44 | ···············digits,·"-"·and·"_"·that·follows·it. | 51 | ·····················sequence·of·letters,·digits,·"-"·and·"_"·that·follows·it. |
45 | ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output, | 52 | ·····················If·a·'$'·character·needs·to·be·kept·in·the·final·output, |
46 | ···············interpreted·as·a·macro·name,·it·must·be·escaped·by | 53 | ·····················and·not·interpreted·as·a·macro·name,·it·must·be·escaped·by |
47 | ···············character.·This·is·especially·true·for·PHP | 54 | ·····················another·'$'·character.·This·is·especially·true·for·PHP |
55 | ·····················code. | ||
48 | ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's | 56 | ·····················If·the·'$'·macro·is·the·only·text·in·the·attribute's |
49 | ···············will·automatically·surround·it·with·quotati | 57 | ·····················value,·htp·will·automatically·surround·it·with·quotation |
50 | ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup | ||
51 | ··············· | 58 | ·····················marks·to·prevent·spaces·from·delimiting·the·text·as·if·it |
59 | ·····················were·additional·markup·attributes.·If·the·'$'·macro·is | ||
60 | ·····················surrounded·by·other·text·(as·in·the·two·examples·above), | ||
52 | ··············· | 61 | ·····················quotation·marks·are·not·automatically·supplied. |
53 | ···············supplied. | ||
54 | ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup | 62 | ·····················Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup |
55 | ···············can·be·nested.·This·is·valid: | 63 | ·····················tag·and·can·be·nested.·This·is·valid: |
56 | ··············· · ·<${tagName}·${attrName}=${value$ctr}> | 64 | ····················· · ·<${tagName}·${attrName}=${value$ctr}> |
57 | ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self- | 65 | ·····················The·tagName·macro·can·contain·any·tag·name,·even·a·self- |
58 | ···············metatag.·Note·that·$ctr·is·expanded·before·th | 66 | ·····················defined·metatag.·Note·that·$ctr·is·expanded·before·the |
59 | ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand | ||
60 | ···············value | 67 | ·····················valueX·macro·is·expanded,·so·assuming·that·ctr·was·set·to |
68 | ·····················1·it·will·expand·value1. | ||
Offset 81, 16 lines modified | Offset 89, 15 lines modified | ||
81 | page_source | 89 | page_source |
82 | htp_project | 90 | htp_project |
83 | htp_homepage | 91 | htp_homepage |
84 | hosted·by | 92 | hosted·by |
85 | Sourceforge | 93 | Sourceforge |
86 | HTML·coding | 94 | HTML·coding |
87 | [Powered_by | 95 | [Powered_by_htp] |
88 | htp] | ||
89 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 96 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
90 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 97 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
91 | ·····Maintainers:·Jochen_Hoenicke. | 98 | ·····Maintainers:·Jochen_Hoenicke. |
92 | Copyright·©·1995–96·Jim·Nelson. | 99 | Copyright·©·1995–96·Jim·Nelson. |
93 | Copyright·©·2001–2014·Jochen_Hoenicke. | 100 | Copyright·©·2001–2014·Jochen_Hoenicke. |
94 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 101 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
95 | according·to·terms·described·in·the·License_section. | 102 | according·to·terms·described·in·the·License_section. |
Offset 114, 21 lines modified | Offset 114, 23 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">"header.hti"</span>></span><br> | ||
122 | ·<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">"1"</span>></span><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·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
124 | · ·<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> | ||
125 | 121 | <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">stuff</span>></span><br> | |
122 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
126 | 123 | <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> | |
124 | <br> | ||
125 | <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">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
126 | <br> | ||
127 | This·works:· · ·<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">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href=" | 128 | But·this·fails:·<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">email</span>></span><br> |
129 | And·this·fails:·<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">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
128 | </code></p> | 130 | </code></p> |
129 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
130 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 132 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
131 | The·basic·form·is·shown·above. | 133 | The·basic·form·is·shown·above. |
132 | <P> | 134 | <P> |
133 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 135 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
134 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 136 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
Offset 137, 16 lines modified | Offset 139, 18 lines modified | ||
137 | ··<p><code> | 139 | ··<p><code> |
138 | · ·<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> | 140 | · ·<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> |
139 | </code></p> | 141 | </code></p> |
140 | <P> | 142 | <P> |
141 | 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 | 143 | 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 | macro's·existance: | 144 | macro's·existance: |
143 | ··<p><code> | 145 | ··<p><code> |
144 | <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> | ||
145 | <span·class="htp-tag">< | 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">$i</span></span>></span><br> |
147 | · ·...<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">i</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> | ||
146 | </code></p> | 150 | </code></p> |
147 | <P> | 151 | <P> |
148 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 152 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
149 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 153 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
150 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 154 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
151 | <P> | 155 | <P> |
152 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 156 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 37 lines modified | Offset 1, 42 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of | 3 | Table_of··········*****·syntax·***** |
4 | Introduction··········<[[ref]]file·include="header.hti"> | ||
5 | License··············· ·<[[ref]]set·sect-ctr="1"> | ||
6 | Tutorial·············· ·<[[ref]]while·sect-${sect-ctr}> | ||
7 | Usage················· · ·<[[ref]]use·sect-${sect-ctr}> | ||
8 | HTP·Tags·············· · ·<[[ref]]inc·sect-ctr> | ||
9 | ··ALTTEXT··········· ·<[[ref]]/while> | ||
10 | 4 | Contents··········<[[ref]]block·stuff> | |
5 | Introduction···· ·<a·href=$email>send·email</a> | ||
6 | License·········<[[ref]]/block> | ||
7 | Tutorial | ||
8 | Usage···········<[[ref]]set·morestuff=$email> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
11 | ··BLOCK·······But·this·fails:·<[[ref]]use·email> | ||
12 | ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff | ||
13 | ··DEF·········email="jnelson@crl.com"> | ||
11 | ·· | 14 | ··FILE········*****·synopsis·***** |
12 | ·· | 15 | ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The |
13 | ·· | 16 | ··INC·········basic·form·is·shown·above. |
14 | ··I | 17 | ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" |
15 | ··I | 18 | ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a |
16 | ··IMG···············value·of·a·macro·against·a·literal·string.·If·the | ||
17 | ··IMAGEURL··········NOT·tag·is·present·in·the·WHILE·markup,·the | ||
18 | ··OPT············ | 19 | ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in |
20 | ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is | ||
21 | ··QUOTE·······reversed: | ||
19 | ·· | 22 | ··SET········· · ·<[[ref]]unset·email_addr·home_url·login_name> |
20 | ·· | 23 | ··UNDEF·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
21 | ··SET···············macro's·existance: | ||
22 | ··UNDEF·············<a·href="mailto:$email">mailto·hyperlink</a> | ||
23 | ··UNSET·············<a·href="http://$domain/~${username}/">another | ||
24 | ··USE | 24 | ··UNSET·······existance: |
25 | ··USE,_$······ ·<[[ref]]WHILE·sect-$i> | ||
26 | [>]·WHILE······· · ·... | ||
27 | ··<!---······· · ·<[[ref]]INC·i> | ||
28 | History········· ·<[[ref]]/WHILE> | ||
25 | | 29 | Wish_list·······If·the·condition·is·true,·the·block·is·evaluated·and |
26 | | 30 | Bugs············afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- |
27 | History···············the·'$'-operator·is·used·in·the·WHILE·tag·it·is | ||
28 | 31 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | |
32 | ··················each·iteration. | ||
29 | 33 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | |
Offset 49, 16 lines modified | Offset 54, 16 lines modified | ||
49 | page_source | 54 | page_source |
50 | htp_project | 55 | htp_project |
51 | htp_homepage | 56 | htp_homepage |
52 | hosted·by | 57 | hosted·by |
53 | Sourceforge | 58 | Sourceforge |
54 | HTML·coding·[Powered | ||
55 | 59 | HTML·coding | |
60 | [Powered_by_htp] | ||
56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
58 | ·····Maintainers:·Jochen_Hoenicke. | 63 | ·····Maintainers:·Jochen_Hoenicke. |
59 | Copyright·©·1995–96·Jim·Nelson. | 64 | Copyright·©·1995–96·Jim·Nelson. |
60 | Copyright·©·2001–2014·Jochen_Hoenicke. | 65 | Copyright·©·2001–2014·Jochen_Hoenicke. |
61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
62 | according·to·terms·described·in·the·License_section. | 67 | according·to·terms·described·in·the·License_section. |